It's pretty obvious how the the UK's actions vs. Iran's, or even the US's, are different.
If UK/US wanted to be in the in the clear they could have asked UNSC to authorize use of force against Iran.
Its role has been entirely defensive, and legal under international law as part of the right to self-defence.