The measures ordered by the UN court are in references to Article II of the Genocide Convention [0], which limits the scope to “
acts committed with intent to destroy, in whole or in part, a national, ethnical, racial or religious group”, where the court identifies the group as “
Palestinians in Gaza”. So it’s the intent of genocide towards that group which is the deciding factor. As long as the actions do not carry that intent (and are plausible as such), they are not prohibited.
My reading is that the court is basically saying “You are presently running the risk of committing genocide, please take all measures in your power to prevent that.”
[0] https://www.un.org/en/genocideprevention/documents/atrocity-...