The residents of Gaza were not occupied by the Hamas; they voted for the terror organization in democratic elections, by a huge majority, by virtue of its uncompromising struggle against Israel.
For this reason, the separation between the armed Hamas terrorists and those ‘not involved’ or ‘innocents’ is false. The Gazans are now paying for the choices they have made.
It is enough for the IDF to make one announcement for residents to evacuate a given area, giving them reasonable time to get away.
Any other measure taken to protect the population against the results of its choices – at the expense of the IDF soldiers – is unethical.