Not moving troops and police away from the border might have prevented Oct 7th. I think they were more focused on the West Bank at the time.