There are two concepts here:
1- “Sabb” which means to use profane or indecent language. Imam Ali (a) advises his companions not to do that, but rather describe the evil actions of Mu’awiya and his people.
2- “La’an” which means cursing, and basically it means to ask Allah to withdraw his mercy. La’na is the opposite of Rahma. Imam Ali (a) is not talking about that. The Qur’an in many verses curses the evil ones, the deviants, and so on. La’an is a Qur’anic principle. M
For further reference, see: