The bigger issue was how Egypt unilaterally seized the Suez Canal Company (jointly owned by the British and the French). Egypt then banned Israel from using the Straits of Tiran for shipping, effectively imposing a blockade. Attempting regime change was likely unwise, but all three countries were quite thoroughly provoked by Nasser.