It's not like he went in out of pure malice or anything though, they were trying to hack him first. Not saying it's some morally pristine thing, but it definitely communicated what it was trying to communicate.
As an analogy, we should have empathy for homeless people stuck in poverty, but if one of them continually bikes to your house and tries to break in, is it morally dubious to eventually take their bike chain rather than just shooing them away each attempt? I imagine the moral razor would fall on similar lines.