North Korea nears 'dangerous line,' Hagel says