Sen. Lindsey Graham said Thursday that he hoped for peace on the Korean peninsula, but warned North Korean leader Kim Jong Un that “it will be the end” of him and his regime if he tries to take advantage of President Trump.

The GOP senator said Trump’s diplomatic showdown with Kim presented the “best hope in decades” to peacefully resolve the threat of nuclear conflict — but Graham added that he is “not naive.”

“I understand that if the past is an indication of the future, North Korea will be all talk and no action,” the South Carolina senator said in a statement.

“However, I do believe that North Korea now believes President Trump will use military force if he has to.”

Then Graham added a “word of warning” for the leader of the nuclear-armed hermit kingdom.

“The worst possible thing you can do is meet with President Trump in person and try to play him,” the senator said.

“If you do that, it will be the end of you — and your regime.”