The Iranian Revolutionary Guard Corps (IRGC) conducted naval drills, including missile maneuvers simulating an attack on an air base in Israel.
IRGC Commander Hossein Salami warned against attacking Iranian ships, threatening double attacks in response to any attack.
Iranian media quoted Salami as saying that the IRGC would win any war it enters, whether military or electronic.
He assured that the force stands prepared for potential conflict, underscoring the IRGC's cyberspace prowess and ability to counter enemy actions in this domain.
Salami said, "In the event of a naval conflict and our ships being targeted, we will respond with equal or greater force."
The Commander's warning comes amid escalating maritime tensions as a result of attacks launched by the Houthi group against commercial ships in the Red Sea since last November.
On Tuesday, the IRGC announced it had conducted a maneuver simulating a surface-to-surface ballistic missile attack on Israel's Palmachim airbase south of Tel Aviv.
According to Iranian television, Palmachim was the "main base for F-35 fighter jets" in Israel.
Meanwhile, the Commander of Khatam-al Anbiya Central Headquarters, Major General Gholam Ali Rashid, warned that any error in the enemies' calculations would cost more than its achievements.
Rashid said the enemies are aware they are being monitored, asserting that Iranian forces are ready to make them pay the price if they make the mistake of attacking Iran.
Any of the enemy's tactical actions will become a strategic failure, said Rashid.
On Monday, the IRGC commander announced the successful firing of a long-range ballistic missile from the warship for the first time, in a move that may increase concerns about the security of navigation in the region.
Iranian television broadcast pictures of the operation, saying that an IRGC vessel launched ballistic missiles "for the first time" while it was in the Gulf of Oman in the Indian Ocean, according to Agence France-Presse.
Iranian media quoted Salami as saying that the operation to launch the long-range ballistic missile from a ship "was completed successfully."
He added: "Our ships can be anywhere in the oceans."
"There is no safe place for forces that want to threaten our security."
Iranian television explained that the two missiles launched from the ship ranged from at least 1,700 kilometers and landed in a desert in central Iran.