HONG KONG  China warned on Friday that tensions on the Korean Peninsula could spin out of control, as North Korea said it could test a nuclear weapon at any time and a United States naval group neared the peninsula  an American effort to sow doubt in Pyongyang over how President Trump might respond.