Yeah, Israel has done some infiltration like that. Not proper, but you're pointing out a molehill while ignoring the mountain.
When the molehill is a war crime, sure.
So is the mountain, though
Yes. You will not find me defending Hamas war crimes, of which there are many too.