China on Tuesday slammed Mike Pompeo for "lunatic ravings and babbling nonsense" after the US secretary of state criticised Beijing's human rights record in a statement issued on the 30th anniversary of the Tiananmen Square carackdown.

Pompeo's statement "maliciously attacks China's political system, denigrates the state of China's human rights and religious affairs, wantonly criticises China's Xinjiang policy and severely interferes in China's domestic affairs", foreign ministry spokesman Geng Shuang said in a regular press briefing.

"These lunatic ravings and babbling nonsense will only end up in the trash can of history."

Mr Pompeo made his comments the day before the anniversary of the June 4, 1989 bloodshed.

In a sign of further strain between China and the US, Beijing on Tuesday issued a travel warning for America, saying Chinese visitors have been interrogated, interviewed and subjected to other forms of what it called harassment by US law enforcement agencies.