First, Egypt gave Israel an ultimatum - threat, if you will - that happens in diplomatic situations all the time, especially with treaty nations.
This is the diplomatic way of saying "Yeah no, you should not do this." And actions have consequences; the consequences here being that yes, Egypt...