You can't make that determination from the available facts.
If a dog corners a cat, is it wrong for the cat to take a swipe at the dog's nose?
The cat has a reasonable fear of being attacked by the dog. Legally, the dog has assaulted the cat by chasing and cornering it. The cat is justified in taking a swipe at the dog. The dog is at fault, not the cat.
********************
justitia omnibus
********************
"It ain't what you don't know that gets you into trouble. It's what you know for sure that just ain't so."