Beijing said it would take unspecified "countermeasures" in response to President Donald Trump's tariff, which takes effect on Tuesday.