Amid rising nuclear tensions with North Korea and concern over the potential for war, the top U.S. nuclear commander said on Saturday that he would resist President Donald Trump if he ordered an “illegal” launch of nuclear weapons.

Air Force General John Hyten, commander of the U.S. Strategic Command (STRATCOM), told an audience at the Halifax International Security Forum in Nova Scotia, Canada that he had thought a lot about what to say if he received such an order.

“I think some people think we’re stupid,” Hyten said in response to a question about such a scenario, reports Reuters. “We’re not stupid people. We think about these things a lot. When you have this responsibility, how do you not think about it?”

Hyten, who is responsible for overseeing the U.S. nuclear arsenal, detailed the process that would follow such a command.

As head of STRATCOM “I provide advice to the president, he will tell me what to do,” he said in his remarks, which were retransmitted in a video posted on the forum’s Facebook page.

SCIENTISTS HAVE A NEW THEORY ON HOW THE CHERNOBYL DISASTER UNFOLDED

“And if it’s illegal, guess what’s going to happen? I‘m going to say, ‘Mr. President, that’s illegal.’ And guess what he’s going to do? He’s going to say, ‘What would be legal?’ And we’ll come up with options, of a mix of capabilities to respond to whatever the situation is, and that’s the way it works. It’s not that complicated.”

Hyten said running through scenarios of how to react in the event of an illegal order was standard practice, and added: “If you execute an unlawful order, you will go to jail. You could go to jail for the rest of your life.”

The Pentagon did not immediately respond to a Reuters request for comment on Hyten’s remarks.

The general’s comments came after U.S. lawmakers, including some Republicans, expressing concern about Trump’s authority to wage war using nuclear weapons.

Trump has traded insults with North Korea’s Kim Jong Un and threatened in his maiden United Nations address to “totally destroy” the country of 26 million people if it threatened America.

Some senators want legislation to alter the nuclear authority of the U.S. president and a Senate committee on Tuesday held the first congressional hearing in more than four decades on the president’s authority to launch a nuclear strike.

The Associated Press contributed to this report.