In the war against ISIS, President Obama is breaking what he claims as his cardinal rule of foreign policy: "Don't do stupid sh-t."

You can see it most clearly in America's drip-drip-drip pooling of forces and resources in Syria, where despite the president's many, many promises not to put American boots on Syrian soil, we are indeed putting hundreds of U.S. boots on the ground. What makes this so stupid is that there is simply no way this intervention — better left to regional powers directly affected by Syria's fate — will turn out to be a win for the United States.

Now, it would be easy to argue in the wake of an ISIS-claimed attack in Orlando, the worst mass shooting in U.S. history, that America must, in a too-familiar move, fight them over there so we don't have to fight them over here. The Wall Street Journal editorial board wrote exactly that in a piece published Monday, insisting the "only real solution" is large-scale war "to destroy Islamic State in its havens abroad so young Muslims around the world won't see it as the vanguard of the future."

But ISIS actually had very little to do with this attack, beyond issuing some general instructions that the U.S.-born gunman, who apparently had no actual contact with ISIS, followed from afar. And even if the Orlando nightclub shooting was a masterplan hatched by ISIS terrorists in Syria (it wasn't), there would be almost nothing for the U.S. to gain by sending troops there.

After all, there are three ways expanded intervention in Syria might go. None of them are good for America.

First, we might end up helping a dictator stay in power. Where Obama once insisted that "Assad must go," in recent months he has backed off that ultimatum, perhaps in recognition that efforts to oust Assad may prove a distraction from efforts to defeat Syria's other problem, ISIS.

In this, Obama would not be entirely off the mark, as appalling as the Assad regime has been. After all, Obama's pet war to oust Libyan strongman Moammar Gadhafi created a power vacuum into which ISIS has surged. And in Syria, American-backed forces are fighting each other as our anti-Assad and anti-ISIS proxies clash. With context like this, it's not unthinkable that America's presence in Syria could end up prolonging Assad's brutality in service of squashing ISIS.

Conversely, the second possible outcome is U.S. intervention does take out Assad, but loses Syria to ISIS in the process. The allegiances of the rebels we support have always been dubious (the Pentagon and CIA are actively bickering over how radical is too radical) while the prime American role in Syria so far has been to pump obscene amounts of money and weaponry into an already volatile situation. And again, an Assad-less Syria might just be the power vacuum ISIS needs for a new territory grab.

But third, suppose Obama's intervention defeats Assad and ISIS. What then? Well, then America has a nation-building project of enormous scale on its hands.

Syria has about two-thirds the population of Iraq — around 22 million before the fighting started — but some 470,000 have been killed, 6.6 million are internally displaced, and more than 4.5 million have fled for safety abroad. Satellite imagery of night-time electricity use in the country shows it has dropped by a shocking 80 percent since 2011. In short, years of fighting have left Syria in unthinkable ruins. Normalcy and prosperity are very, very far away.

If and when Syria does finally achieve peace, I have no doubt that Americans will gladly and generously give to help Syrians get back on their feet. But that is a very different prospect from allowing a lame-duck president to pledge America's precious resources to what will even in a best-case scenario be a long, expensive, dangerous, messy military campaign which is of dubious connection to our direct national security interests — followed by a long, expensive, dangerous, messy nation-building project which is likewise of dubious connection to the direct interests of the United States. After Iraq, is that really a project America wants or can afford to shoulder? The more we meddle, the more the moral and financial risk and responsibility will become ours.

So far, there are only about 300 American troops in Syria. If that's true (and it might not be, as the administration does not have a history of honesty on this topic) it's not too late to stop a large-scale intervention before it really begins. President Obama should take this opportunity to keep the promise he has long made, and more importantly, follow his rule of not doing stupid sh-t.