BRIDGEWATER, N.J. — President Trump threatened on Tuesday to unleash “fire and fury” against North Korea if it endangered the United States, as tensions with the isolated and impoverished nuclear-armed state escalated into perhaps the most serious foreign policy challenge yet of his administration.

In chilling language that evoked the horror of a nuclear exchange, Mr. Trump sought to deter North Korea from any actions that would put Americans at risk. But it was not clear what specifically would cross his line. Administration officials have said that a pre-emptive military strike, while a last resort, is among the options they have made available to the president.

“North Korea best not make any more threats to the United States,” Mr. Trump told reporters at his golf club in Bedminster, N.J., where he is spending much of the month on a working vacation. “They will be met with fire and fury like the world has never seen.”

Referring to North Korea’s volatile leader, Kim Jong-un, Mr. Trump said, “He has been very threatening beyond a normal state, and as I said, they will be met with fire and fury, and frankly power the likes of which this world has never seen before.”