President Trump on Sunday noted that harassment of United States warships by the Iranian navy in the Persian Gulf has stopped in the second year of his administration.

He tweeted US Navy statistics on the dangerous encounters — which included 22 events in 2015, 36 in 2016, 14 in 2017 and zero in 2018.

The first two years were during President Obama’s administration.

The last event happened in August 2017 when an Iranian drone flew close to a F/A-18 Super Hornet that was attempting to land on the aircraft carrier USS Nimitz, forcing the jetfighter to take evasive action, the Navy said. ​

But that respite might be short-lived as Iran has threatened to block the strategic Strait of Hormuz, the passage between the Persian Gulf and the Gulf of Oman, in an effort to disrupt international crude oil supplies.

The threat came after the Trump administration last week warned countries to end imports of Iranian oil by Nov. 4 as part of its tougher campaign against the Islamic Republic after withdrawing from the 2015 nuclear deal.

Iranian President Hassan Rouhani called the threats an exaggeration and said the US is unfairly singling out his country for punishment.

“It really is an unfounded and unfair thing to suggest that one day all oil-producing countries will be able to export oil, while Iran won’t be able to do so,” Rouhani said, according to Fox News.

The reaction from Esmail Kowsari, a commander ​in​ the country’s elite ​Revolutionary Guard, ​carried a more militant tone.

“Any hostile attempt by the U.S. will be followed by an exorbitant cost for them,” ​Kowsari said, Bloomberg reported. “If Iran’s oil exports are to be prevented, we will not give permission for oil to be exported to the world through the Strait of Hormuz.​”​

Trump got assurances from Saudi Arabia that it would increase oil production to make up for any losses in the international market caused by Iran.

The Strait of Hormuz provides Middle East countries the only sea route from the Persian Gulf to the open ocean for their oil exports and about 35 percent of the world’s sea-borne oil passes through the waterway each day.