China’s top diplomat warns EU over ‘mistaken’ deals to harm country