China vowed Wednesday it would not accept "criticism or pressure" over its ties with Russia, after Washington warned that it will hold Beijing responsible if Moscow makes gains in Ukraine.

Deputy Secretary of State Kurt Campbell said Tuesday that Washington would "not sit by and say everything is fine" after Beijing renewed pledges of cooperation with Moscow during a visit by Russia's top diplomat.

In response, foreign ministry spokesperson Mao Ning insisted that "China and Russia have the right to engage in normal economic and trade cooperation".

"This kind of cooperation should not be interfered with or limited, and China also does not accept criticism or pressure," she added on Wednesday.

China and Russia pledged Tuesday they would strengthen strategic cooperation as Foreign Minister Sergei Lavrov held talks with President Xi Jinping and top diplomat Wang Yi.

The two countries have in recent years ramped up contacts, and their strategic partnership has only grown closer since Moscow's invasion of neighbouring Ukraine.

Analysts say China holds the upper hand in the relationship with Russia, with its sway growing as Moscow's international isolation deepens as its war drags on.

While China says it is a neutral party in the Ukraine conflict, it has been criticised for refusing to condemn Moscow for its offensive and for indirect support for the war effort by continuing to trade with Russia.

"We have told China directly, if this continues, it will have an impact on the US-China relationship," Campbell said Tuesday.

"We will see this not as just a Russian unique set of activities but a conjoined set of activities backed by China but also North Korea. This is antithetical to our interests," he told the National Committee on US-China Relations, an educational group.

Beijing insisted on Wednesday it has "always played a constructive role" in seeking a resolution to the war in Ukraine.

"If any country is truly concerned about peace in Ukraine, and hopes for an early end to the crisis, they should first reflect on the root causes of the crisis," Mao said.