China’s president, Xi Jinping, has urged President Trump to show restraint toward North Korea despite signs that the North may be preparing a nuclear test. Mr. Xi made the appeal in a phone call with Mr. Trump on Monday that reflected growing alarm over North Korea’s plans, which could tip the region into crisis.