> The court ruled that Israel must do all it can to prevent genocide, including refraining from killing Palestinians or causing harm to them
Sounds like a ceasefire to me. How else would they do this? Definitely not with any of the military tactics Israel is currently using.
It isn't unlawful per se to cause civilian casualties during military operations; any demand that the warring parties limit themselves to killing combatants only would be unrealistic, especially in urban settings.
It is unlawful to target civilians intentionally or to cause wanton damage to civilian infrastructure, though.