North Korean flag
North Korean flagReuters

U.S. President Donald Trump on Thursday warned North Korea on Thursday to stop "behaving badly," saying that while military action is not "inevitable," it remains on the table if Pyongyang continues to ramp up its nuclear program.

"I would prefer not going the route of the military but it's something certainly that could happen," Trump said during a press conference with the Emir of Kuwait, Sheikh Sabah al-Ahmad al-Jaber al-Sabah, according to The Hill.

He noted his administration's investment in "new and beautiful" weaponry that could be used to quell any potential threat.

"Hopefully, we are not going to have to use it on North Korea. But if we do use it on North Korea, it will be a very sad day for North Korea," stressed Trump.

North Korea confirmed on Sunday it carried out a successful hydrogen bomb test, its sixth and most powerful nuclear test to date.

The test came after a war of words between North Korea and Trump. The President warned that Pyongyang faced "fire and fury like the world has never seen" if it continued to threaten the United States with its missile and nuclear programs.

In response, North Korea threatened to attack Guam, a tiny U.S. territory in the Pacific.

On Tuesday, North Korea warned it would send “more gift packages” to the U.S. should it continue to pressure Pyongyang.