The court’s action was in response to a petition by an animal rights group concerned about the welfare of the crocodiles. It was not based on concern for the welfare of Palestinian prisoners. (Yes, really.)

Middle East Eye (Unofficial)

Israeli court blocks Ben Gvir crocodile moat plan for prisons holding Palestinians - https://www.middleeasteye.net/live-blog/live-blog-update/israeli-court-blocks-ben-gvir-crocodile-moat-plan-prisons-holding