The nation’s foreign ministry spokesman, Saeed Khatibzadeh, spoke following unconfirmed reports of an Israeli submarine crossing the Suez Canal and heading for the Gulf. It also comes a week after the US Navy announced the deployment of nuclear submarine USS Georgia to the region, which passed through the Strait of Hormuz in a show of strength.
The strait is the only sea passage connecting the Persian Gulf to the open ocean, making it one of the world’s most strategically important choke points.
According to Agence France-Presse, on Monday, Mr Khatibzade told reporters: “Everyone knows what the Persian Gulf signifies for Iran.
“Everyone knows the policies [of Tehran] regarding security and national security.
“Everyone knows very well how high the risk is raised if the red lines of Iran are crossed.”
Khamenei, who this month met with Soleimani’s family, said: “Those who ordered the murder of General Soleimani as well as those who carried this out should be punished.
“This revenge will certainly happen at the right time.”
Mr Trump spoke of the rocket attacks on the US embassy in Baghdad on Twitter.
He claimed: “Our embassy in Baghdad got hit Sunday by several rockets.
“Guess where they came from: IRAN.
“Now we hear chatter about additional attacks against Americans in Iraq … Some friendly health advice to Iran: If one American is killed, I will hold Iran responsible. Think it over.”
An Iraqi military statement said an “an outlawed group” was behind the attack.
The US withdrew staff from the Baghdad embassy earlier this month ahead of the first anniversary of the Soleimani airstrike in a precautionary move.