I wouldn't mind all that much if somebody said bad words to AI strategically in order to successfully make AI behave better, same way I don't mind all that much if someone is making or watching a movie with cartoonish violence.
It still wouldn't be great because why would we make AI that behaves well only when you say bad words to it? But I wouldn't mind all that much.
I do mind if those word are emotionally motivated.
If they do it to fasten two things together, no.
Emotionally motivated violence is something to be extremely cautious about, regardless of the target.