Iran quadrupled its uranium-enrichment production capacity amid tensions with the US over Tehran’s nuke program, officials said Monday, just after President Trump and Iran’s foreign minister traded threats and taunts on Twitter.

Iranian officials made a point to stress that the uranium would be enriched only to the 3.67% limit set under the 2015 nuclear deal with world powers, making it usable for a power plant but far below what’s needed for an atomic weapon.

But by increasing production, Iran soon will go beyond the stockpile limitations set by the accord, which the US pulled out of at Trump’s behest.

Tehran has set a July 7 deadline for Europe to come up with new terms for the deal or it will enrich closer to weapons-grade levels in a Middle East already on edge.

The Trump administration has deployed bombers and an aircraft carrier to the region over still-unspecified threats from Iran.

Already this month, officials in the United Arab Emirates alleged that four oil tankers were damaged in a sabotage attack; Yemeni rebels allied with Iran launched a drone attack on an oil pipeline in Saudi Arabia; and US diplomats relayed a warning that commercial airlines could be misidentified by Iran and attacked, something dismissed by Tehran.

A rocket landed Sunday near the US Embassy in the Green Zone of Iraq’s capital of Baghdad days after nonessential US staff were ordered to evacuate from diplomatic posts in the country. No one was reported injured.

Iraqi military spokesman Brig. Gen. Yahya Rasoul told the Associated Press that the rocket was believed to have been fired from eastern Baghdad, an area home to Iran-backed Shiite militias.

Behrouz Kamalvandi, the spokesman of the Atomic Energy Organization of Iran, as acknowledged that capacity had been quadrupled.

He said Iran took this step because the US had ended a program allowing it to exchange enriched uranium to Russia for unprocessed yellowcake uranium, as well as ending the sale of heavy water to Oman.

Heavy water helps cool reactors producing plutonium that can be used in nuclear weapons.

Before Iran’s announcement, Trump tweeted: “If Iran wants to fight, that will be the official end of Iran. Never threaten the United States again!”

Trump’s remarks reflect what has been a strategy of alternating tough talk with more conciliatory statements he said were aimed at keeping Iran guessing at the administration’s intentions. He also has said he hopes Iran calls him and engages in negotiations.

He described his approach in a speech Friday, saying, “It’s probably a good thing because they’re saying, ‘Man, I don’t know where these people are coming from,’ right?”

But while Trump’s approach of flattery and threats has become a hallmark of his foreign policy, the risks have only grown in dealing with Iran, where mistrust between Tehran and Washington stretch back four decades.

While both Washington and Tehran say they don’t seek war, many worry any miscalculation could spiral out of control.

Iranian Foreign Minister Mohammad Javad Zarif soon responded by tweeting that Trump had been “goaded” into “genocidal taunts.” Zarif referenced both Alexander the Great and Genghis Khan as two historical leaders that Persia outlasted.

“Iranians have stood tall for a millennia while aggressors all gone,” he wrote. “Try respect – it works!”

Zarif also used the hashtag #NeverThreatenAnIranian, a reference to a comment he made during intense negotiations for the 2016 nuclear accord.

With Post wires