One thing to consider is that Trump is publicly stating that the US are destroying the infrastructure as a punishment for non-compliance. That basically makes it clear that the motive is not based on military considerations.

Yeah I did wonder myself if that tweet was an admission of guilt.

If I were a lawyer responsible for defending Trump in the Hague, I'd argue that the tweet was actually an abbreviated way of saying "If Iran does not comply, we will destroy all military assets, including but not limited to their ICBMs, Bridges, and Power Stations, such that we have total military dominance."

Now very obviously (to me at least) this was not the intent of the message, but I don't know whether you could prove that in a hypothetical war crimes trial.

It's basically what russia is trying to do for years in Ukraine. Beating populatuon into submission. Which is even dumber in case of Iran since it's not a democratic country where population has much of a say.