Gaza is Swiss-cheesed with hundreds of miles of military tunnels. If any attack on a tunnel is disallowed because of civilian buildings above it, I predict many countries will start adopting the Hamas strategy of putting military bases under civilian buildings. That way, every attack on your bases becomes a war crime by your enemy - you can't lose!