Cursing is not a good verbal action whatsoever. In fact avoiding it is at all times better and much more moral only in the event of oppression is being imposed in the person, that person is allowed to a very limited and specific term to curse and if the one that the curse of said against is a mumin then cursing us not allowed
Please read this for further clarity:
https://www.iqraonline.net/what-is-the-meaning-of-cursing-lan-in-the-quran/