Egypt knows Israel is not the enemy. Israel would not attack Egypt unless Egypt does something stupid.
Egypt’s enemy are the Muslim Brotherhood and their allies.
If Egypt “knows” this, then what was with the multitude in Tahrir Square chanting “To Jerusalem we go, martyrs in the millions” why by far and large were not MB members of Salafi? and why did they originally vote in MB members who were “officially” not members in the first place? Public sentiment does not change in three years, especially anti-Israel sentiment.