It is quite obvious that if Iran would to hit targets inside Israel, that would cause significant increase of already existing sanctions regime against that country, but even more relevant, it would draw universal condemnations from most of the countries.
Therefore, even as these countries for some reason are not ready to put the same amount of pressure on Israel, it nevertheless makes sense for them to condemn such attacks by Israel, as they have the potential of throwing the whole region into major disarray.
It may look like a great proposition to attack the side you do not have peace with, when you assume that side will not return the attack. But what if they eventually do? Then this fragile arrangement will fail and all three countries will plunge into hot war.
So even between countries which are not at peace, international law would prefer to see undeclared truce followed by a cessation of hostilities followed by undeclared truce, rather than sporadic one directional attacks followed by two sided attacks followed by a war.