There was some intelligence about a potential threat, but hardly anything specific that they could easily respond to. Coupled with the fact that Hamas has their own counterintelligence laying out deceptions in the months leading up to the attack.
I guess Israel could have just stationed a few battalions over the full length of the border....forever.