The lack of a common border does not prevent Israel from invading Iran. The fear of losing their lucrative "permanent victim status" is what prevents Israel from invading Iran and stopping future attacks.
Iran has a population of 90 million. To get to it would require invading Syria and Iraq, another 65 million people. It would be quite the accomplishment to invade 155 million people.
If anything, a war against such a huge power would make Israel more of an underdog. Moving forces into Gaza was effortless by comparison.