Beijing reiterated its plea for peace talks after the bellicose rhetoric between the United States and North Korea reached new heights in recent days, following Pyongyang's sixth nuclear test early this month.
China hopes Washington and Pyongyang realise that "blindly flaunting one's superiority with words to show off and mutual provocation will only increase the risk of confrontation and reduce the room for policy manoeuvres", said foreign ministry spokesman Lu Kang.
"A war on the Korean peninsula will have no winners and would be even worse for the region and regional countries," Lu told a regular news briefing.
Trump tweeted at the weekend that North Korea's leadership "won't be around much longer" if it keeps up its threats.
North Korean Foreign Minister Ri Yong-ho accused Trump of declaring war, and warned that his country would be ready to shoot down US bombers.
Defense Secretary Jim Mattis toned down the rhetoric on Tuesday, saying Washington wanted a diplomatic solution to the crisis.
"We maintain the capability to deter North Korea's most dangerous threats but also to back up our diplomats in a manner that keeps this as long as possible in the diplomatic realm," he said in New Delhi after talks with his Indian counterpart.
"That is our goal, to solve this diplomatically, and I believe that President Trump has been very clear on this issue," the US defence chief said.
President Donald Trump and North Korean leader Kim Jong-Un have become embroiled in a bitter war of words after the North detonated its sixth nuclear bomb and test-fired intercontinental missiles -- saying it needs to defend itself against the threat of a US invasion.
Related reading
Abe calls snap election amid Japan's North Korean crisis
Pyongyang's nuclear weapons ambitions -- including a suggestion last week that it could test an H-bomb over the Pacific -- has increased international fears of conflict.
Alarm over Pyongyang's nuclear and ballistic missile programmes dominated this year's gathering of world leaders at the United Nations General Assembly.
Mattis said the United States was continuing to put pressure on the North's leadership through diplomatic channels.
"We continue to maintain the diplomatically-led effort in the United Nations. You have seen unanimous United Nations Security Council resolutions passed that have increased the pressure, economic pressure and diplomatic pressure, on the North," he said.