Iran has warned the US of retaliation against American energy interests in the Gulf if Washington launches further attacks on Iranian assets.