According to international law, bombing and firing rockets and missiles into a sovereign state is against the law. Further, failing to separate combatants from the civilian population is a war crime.
So spare us your anxiety about this, an let's just get on with it. Let's see now. More Gazan casualties than Israeli casualties. Sounds about right.