By international law the soil is not the same. So based on that it would be a bigger act of war on their own soil.
Based on the same international laws bombing a consulate/embassy would be a bigger act of war than a bombing on some random street.
Hopefully I answered your question. Now how about mine?
That's how I was answering your question. Israel has targeted numerous Iranian officials *on Iranian soil* which, as you said, is "worse" than a targeted attack in a consulate.
And again, Iran declared war on Israel in 1979, and has repeated its threat to eradicate it off the map pretty much daily since then. They can't cry that they should be immune from attack when they are in their consulate, they chose to go to war!