WASHINGTON/BEIJING (Reuters) - Chinese efforts to persuade North Korea to rein in its nuclear program have failed, President Donald Trump said on Tuesday, ratcheting up the rhetoric over the death of an American student who had been detained by Pyongyang.

Trump has held high hopes for greater cooperation from China to exert influence over North Korea, leaning heavily on Chinese President Xi Jinping for his assistance. The two leaders had a high-profile summit in Florida in April and Trump has frequently praised Xi while resisting criticizing Chinese trade practices.

“While I greatly appreciate the efforts of President Xi & China to help with North Korea, it has not worked out. At least I know China tried!” Trump wrote on Twitter.

It was unclear whether his remark represented a significant shift in his thinking in the U.S. struggle to stop North Korea’s nuclear program and its test launching of missiles or a change in U.S. policy toward China.

“I think the president is signaling some frustration,” Christopher Hill, a former U.S. ambassador to South Korea, told MSNBC. “He’s signaling to others that he understands this isn’t working, and he’s trying to defend himself, or justify himself, by saying that at least they tried as opposed to others who didn’t even try.”

China’s Foreign Ministry said on Wednesday that China had made “unremitting efforts” to resolve tensions on the Korean peninsula, and that it had “always played and important and constructive role”.

“China’s efforts to resolve the peninsula nuclear issue is not due to any external pressure, but because China is a member of the region and a responsible member of the international community, and because resolving the peninsula nuclear issue is in China’s interests,” ministry spokesman Geng Shuang told a daily news briefing.

On Tuesday, a U.S. official, who did not want to be identified, said U.S. spy satellites had detected movements recently at North Korea’s nuclear test site near a tunnel entrance, but it was unclear if these were preparations for a new nuclear test - perhaps to coincide with high-level talks between the United States and China in Washington on Wednesday.

“North Korea remains prepared to conduct a sixth nuclear test at any time when there is an order from leadership but there are no new unusual indications that can be shared,” a South Korean Defense Ministry official said, speaking on the condition of anonymity.

Seoul was in close consultation with Washington over the matter, the official added.

North Korea last tested a nuclear bomb in September, but it has conducted repeated missile test since and vowed to develop a nuclear-tipped missile capable of hitting the U.S. mainland, putting it at the forefront of Trump’s security worries.

U.S.-CHINA DIALOGUE

The Trump statement about China was likely to increase pressure on Beijing ahead of Wednesday’s Diplomatic and Security Dialogue, which will pair U.S. Secretary of State Rex Tillerson and Defense Secretary James Mattis with China’s top diplomat, State Councilor Yang Jiechi, and General Fang Fenghui, chief of joint staff of the People’s Liberation Army.

U.S. President Donald Trump (L) and China's President Xi Jinping walk along the front patio of the Mar-a-Lago estate after a bilateral meeting in Palm Beach, Florida, U.S., April 7, 2017. REUTERS/Carlos Barria

The State Department says the dialogue will focus on ways to increase pressure on North Korea, but also cover such areas as counter-terrorism and territorial rivalries in the South China Sea.

The U.S. side is expected to press China to cooperate on a further toughening of international sanctions on North Korea. The United States and its allies would like to see an oil embargo and bans on the North Korean airline and guest workers among other moves, steps diplomats say have been resisted by China and Russia.

In a sign that U.S.-Chinese relations remain stable, a White House aide said Trump’s daughter Ivanka Trump and her husband, White House senior adviser Jared Kushner, were invited by the Chinese government to visit the country later this year.

Trump has hardened his rhetoric against North Korea following the death of Otto Warmbier, a University of Virginia student who died on Monday in the United States after returning from captivity in North Korea in a coma.

“A DISGRACE”

In a White House meeting with visiting Ukraine President Petro Poroshenko, Trump criticized the way Warmbier’s case was handled in the year since his arrest, appearing to assail both North Korea and his predecessor, President Barack Obama.

“What happened to Otto is a disgrace. And I spoke with his family. His family is incredible ... but he should have been brought home a long time ago,” Trump said.

State Department spokeswoman Heather Nauert said the United States holds North Korea accountable for Warmbier’s “unjust imprisonment” and urged Pyongyang to release three other Americans who are detained.

Chinese state-run newspaper the Global Times, published by the official People’s Daily, said Chinese officials must be wary that Warmbier’s death might push Washington to put greater pressure on Beijing.

“China has made the utmost efforts to help break the stalemate in the North Korean nuclear issue. But by no means will China, nor will Chinese society permit it to, act as a ‘U.S. ally’ in pressuring North Korea,” the Global Times said in an editorial.

If Washington imposes sanctions on Chinese enterprises, it would lead to “grave friction” between the two countries, said the paper, which does not represent Chinese government policy.

Trump’s tweet about China took some advisers by surprise. A senior administration official, speaking on condition of anonymity, said the United States had limited options to rein in North Korea without Chinese assistance.

White House spokesman Sean Spicer said a meeting between Trump and North Korean leader Kim Jong Un is less likely following Warmbier’s death.

Spicer said Trump would be willing to meet Kim under the right conditions, but “clearly we’re moving further away, not closer to those conditions.”

For graphic on Americans detained by North Korea, click: tmsnrt.rs/2r5xYpB