Murphy's law, "something can go wrong will go wrong". No amount of sophistication can stop something inevitable, it may just delay it and probably in greater magnitude.Late to the game but im actually surprised that IDF/Mossad etc. got caught with their pants down like that. With both highly capable HUMINT and SIGINT in place, something of this magnitude should not have happened.
This was a very large scale and highly sophisticated operation carried out by Hamas... not some lone wolf type with a bomb vest or a couple of folks seeking revenge.
Many someones in Israeli intelligence dropped the ball on this one. Also this proves HAMAS is far more sophisticated and capable that Israel had thought.
The kind of effort that you talk about are in Chinese "治标不治本"/eliminate the symptoms without touching the source. It is a common mistake by all regimes with superior materialistic power because they are convinced by thier advantage and sophistication. However, the root of the problem is always there, someone is pissed off, they will try here or there, now or whenever, sooner or later they will get their chance.