If you re-frame the question: "Some guy attacks your dog with a knife, would you protect your dog?" I think most people wouldn't hesitate to act. Am I wrong?
As for me... I would protect my dog. My family would expect it of me. No apologies and chips fall where they may. I doubt such a case would make it to a jury. It'd be interesting to see if it ever has.