President Trump on Thursday questioned whether the Iranian attack on a US drone was intentional — asserting that a “loose and stupid” rogue “general” could be to blame for the incident.

“I have a feeling, I may be wrong and I may be right, but I’m right a lot. I have a feeling that it was a mistake made by somebody that shouldn’t have been doing what they did,” he said from the Oval Office during a sit-down with Canadian Prime Minister Justin Trudeau.

“I’m not just talking the country made a mistake, I think somebody under the command of that country made a mistake. I think that it could have been somebody who was loose and stupid that did it,” the commander-in-chief continued.

“I would imagine it was a general or somebody that made a mistake in shooting that drone down.”

Trump offered no evidence and cited no intelligence reports to buttress his opinion, which contradicted senior military leaders — and their Iranian counterparts, who confirmed that they had fired the surface-to-air missile that downed the unmanned craft.

The president added that the fact that the drone was unmanned would influence his decision on how to respond.

“There was no man in it. It was just — it was over international waters, clearly over international waters, but we didn’t have a man or woman in the drone. We had nobody in the drone. It would have made a big difference, let me tell you. It would have made a big, big difference,” Trump said.

But he also predicted all would end well.

“Let’s just see what happens. It’s all going to work out. I find it hard to believe it was intentional, if you want to know the truth. We’ll be able to report back and you’ll understand exactly what happened,” he added.

Asked about his campaign pledge to end wars in Afghanistan and the Mideast, the president said that remained his goal, calling the drone attack only “a new fly in the ointment” that won’t interfere with the goal of drawing down US troops.

“Look, I said I want to get out of these endless wars, I campaigned on that, I want to get out … We’ve been in Afghanistan for 19 years. As you know, we’ve reduced very substantially in Afghanistan,” he said.

“And we’re pulling back out of Syria. We’re pulling a lot of people back. But this is a new wrinkle, a new fly in the ointment what happened, shooting down a drone,” he said, adding that “this country will not stand for it, that I can tell you.”

Trudeau, for his part, took a more diplomatic approach, stressing the importance of working with allies and other nations.

“Obviously we’re very concerned about the escalation by Iran recently,” he said, referring also to recent attacks on oil tankers in the region, which the US has blamed on Iran, a charge the country denies.

“We have a significant presence in the area, including a NATO mission in Baghdad and Iraq. We look forward to discussing with our closest allies their perspectives on this and how we can move forward as an international community.“

Tensions have been mounting recently over last week’s attacks on tankers near the Strait of Hormuz.

Then, Iran’s Revolutionary Guard said Thursday it had shot down the RQ-4A Global Hawk drone over Iranian airspace, while the US said the downing happened in international airspace over the Strait of Hormuz.

The US Central Command called it an “unprovoked attack” and Trump tweeted earlier that “Iran made a very big mistake” in shooting it down.

But it was unclear if the “mistake” was the same one he alluded to later, or a grave misstep by Iranian hardliners.

House Speaker Nancy Pelosi, meanwhile, decried the attack but urged caution.

“I think it’s a dangerous situation. The high tension wires are up in the region. We have to be strong and strategic in how we protect our interests. We also cannot be reckless in what we do. I don’t think the president wants to go to war. There’s no appetite to go to war in our country,” she told reporters in DC.

White House officials huddled Thursday morning to discuss a response to Iran’s downing of the US Navy drone.

The Defense Department announced Tuesday that it would send 1,000 more troops to the region after the US said Tehran was involved in attacking the two oil tankers last week.

The deployment is part of a defensive buildup by the US that included sending the USS Abraham Lincoln aircraft carrier strike group, B-52 bombers and Patriot anti-missile defenses to Qatar.