And the reason it needs to be restricted is because Hamas
As with most conflicts, it's a vicious cycle. Israel want to control Gaza's borders through constant (and legitimate) fear of attacks from Hamas. Part of the reason Hamas attack Israel is due to the fact they control Gaza's borders. There is no solution to that that appeases both sides.
Israel have said they've found Hamas members in the hospitals, as well as weapons, equipment, intelligence, and tunnels running under them. I'm sure when the time comes proof of this will be presented in an official capacity to a court. Until that point, any suggestion the raids constitute as a war crime are nothing more than speculation.
Out of interest though, if it's concluded there were indeed Hamas militants in the hospital and it was being used to store weapons, equipment etc etc would you concede they were legitimately raided as a military target?
Also, there are thousands of people currently imprisoned in the UK without being found guilty of a crime, and as of 2022 314 people has been in prison for 3 years or more with no conviction.
This is a situation where Israel cannot win. Do nothing after October 7th, or not respond strongly enough and they look weak not just to Hamas but to their other enemies, as well as risking emboldening them. They also look weak to their citizens and seem as though they're failing to defend them. React strong and attempt to defeat Hamas through war and they're criticised for every civilian death.
It's Islamism 101 - attack, cause death and destruction, hide behind civilians so they suffer the consequences, cry about how evil the west is, use it to legitimise your terrorism.
How people are still falling for it I'll never know.
Have Israel said they found those things in the latest destroyed hospital that they were destroying over 2 weeks?
And Israel's playbook is to control Gaza as they have for decades and occupy the West Bank. Israel controls Gaza's borders after all.
How does Israel regularly stealing land from the West Bank, supporting others to do so through terror and intimidation, denying Palestinians' basic rights, imprisoning and torturing 000s of Palestinians without charge or convicting through a closed military court (again an impossible 99% conviction rate) where the accused have no rights fit into your Islamism 101?
You appear to fail to look at both sides and appear to be justifying anything Israel do including engineering a famine.