It's pretty clear that the tankers are valid targets. They're operating under the protection of the United States, one of the belligerents in the conflict.
I'm not saying it's not bad and definitely not ya gotta hand it to the IRGC, but it's not a war crime.