The Iranian ambassador to London, Seyed Ali Mousavi, warned the UK to be "very cautious" about getting further involved in the war.
He said his country would have the "right to self-defense" if Britain directly joined US and Israeli attacks on Iran.
He stressed that Iran expects the British government and other countries to "be very careful and very delicate" in their actions.
The Iranian warning came after the British government gave permission for the US to use its bases for defensive strikes on Iranian targets. However, the UK has not been directly involved in the attacks.
The Iranian ambassador described British non-involvement as a good thing, as otherwise he said he would participate in what he called aggression.
also
Iran warns of harsher response if US resumes attacks
He added that he believes the British government has learned lessons from the 2003 invasion of Iraq.
And although the Iranian president apologized during the day for the attacks on neighboring Gulf countries, Mousavi made it clear that Iran will continue its attacks on American bases if the strikes against it continue.