How did Egypt’s natural borders protect the country from invaders?

The desert was difficult for invaders to cross.
The Nile Delta made it difficult for invaders to attack from the coast.
The desert made it difficult for Egyptians to build, making their cities hard to find.
The Nile River’s flooding pattern confounded invaders.