President Donald Trump issued a stern warning to North Korea in language rarely seen at the United Nations.