Either way, It was certainly not illegal in any sense. This sounds like sombody's trying to cover for their own failure at "diplomacy and PR". The IDF did nothing wrong, other than to underestimate the potential for violence from the "activists". They should have gone in with more force from the start. That was a mistake of having soft intentions towards these "activists". Hopefully the IDF won't make that mistake again.
About 2,000 demonstrators protest 'occupation policy and fascist settlers' in Nazareth (Haaretz)