Wrong analogy. If the POLICE call and say they are coming, then knock on your door with a warrant and probable cause, you have no right to fight them. And you would be STUPID to do so. Israel is policing the waters against the smuggling of weapons and contraband to the enemy, HAMAS, and has every right to do so.
Aden hotel used by Yemen goverment hit by grenade (Reuters)