Just referring to both sides, if the bully is a boy or a girl, the response should be similar.
Certainly agree that the advice emphasizes the value of violence rather than accepting it as a last resort and measured response, but I'm not so sure it is a sexist sentiment, as could easily see that comment going the same way if it were two boys or two girls or the genders reversed.