Agree that is a war crime.
It is also a war crime to carry out what is known as the Nakba - ethnically cleansing and displacing hundreds and thousands of Palestinians. It is a crime illegally occupy land that does not belong to you. It is a crime to maintain an apartheid state. It is a crime to hold 'prisoners' without any charges It is a crime to rape said prisoners. It is also disgusting to have a society that riots when said rapists are called out for their actions. It is a crime to continually bomb and kill Palestinians for just existing. It is a crime to continually kill Palestinians for no reason via 'mowing the grass' exercises It is a crime to crime to kill Palestinians when they peacefully protest It is a crime to indiscriminately bomb Gaza because some Palestinians have had enough of being subjected to sub-human conditions.
So if you say 'any and all means are justified to prevent that', then any and all means should be justified to prevent the above, right?
There was no "Nakba". Arab Muslims invaded Israel in 1948. They lost their aggressive (expressly genocidal) war. They left again. That isn't ethnic cleansing. There are heaps of Arab Muslims in Israel. They are a sizeable minority of the population. They've always been part of Israel. The peaceful ones that can coexist with Jews stayed. The ones that are so hateful they could not fathom the idea of living alongside Jews left. That's not ethnic cleansing.
Note by contrast that in most Arab Muslim countries in the Middle East, there is not just no large Jewish minority (as there was historically in all of those places). There are no Jews at all. Literally zero. They were ethnically cleansed. Expelled or murdered.
Israel does not occupy any land. In 1967, once again Israel's Arab Muslim neighbours aggressively and genocidally invaded. They once again were unsuccessful and lost territory. That territory has been part of Israel since then. It is no more "occupied" than western Poland is, which not too long ago was Germany, or western parts of Russia that recently were Poland. Land changes hands in the world, and after 1967 that land was lost.
Why when they aggressively invaded Israel should we care about their territorial claims for land they lost in the aftermath? Why is Israel the only country in the world expected to give up land it took decades ago?
Israel doesn't have apartheid. Everyone in the country has the same rights. Muslims are a minority. Obviously they don't get the same say as the Jews who are a majority. That's how every democratic state works.
The antisemitic and defamatory claims that Israel is deliberately killing Palestinian civilians is without basis.