is iran a member of the EU? By your logic, I could prohibit you from drinking beer and then send a friend around to keep you out of the pub because you are in breach of my “sanctions”.
To put that another way, there is no legal relationship between iran and the EU. U.N. sanctions? Yes EU? no.