Chinese Foreign Ministry spokesman Zhao Lijian said during a regular news briefing on Wednesday that those who play with fire will burn themselves to death.
Beijing issued this warning in the context of US Health Minister Alex Azar's visit to Taiwan.
US Health Secretary Alex Azar left for Taiwan on a three-day visit on Sunday.
America has been recognizing China's sovereignty over the island of Taiwan. However, during the administration of President Donald Trump, the US has adopted a more aggressive policy on the Taiwan issue, which is a source of irritation for China.
This is the first time since 1979 that a high-level American minister visited Taiwan. Taiwan was transferred from British rule to China that year.