The North Korean Tripwire

Does North Korea really want to stumble into a nuclear exchange with the United States? Is it too late to avoid this war?