Cursing the wrong doers has come in Quran in 39 verse. Muslim must disassociate from hypocrites and wrongdoers whom Allah (SWT) has cursed in Quran. You can read these Quranic verses to see the great importance of cursing the wrong doers:
Sura al-Baqara, verse 88 and 159.
Sura Annisaa, verse 47 and 52.
Sura Tawba, verse 68.
Sura al-Ahzab, verse 57 and 68.
'Sura Muhammad, verse 23.
Sura al-Fat-h , verse 6.
Sura al-Ankabout , verse 25.
Obviously, we should avoid cursing the religious figures of other communities in front of their followers as Allah (SWT) says in Quran : Do not verbally attack what is been worshipped by the disbelievers, so that they shouldn't attack Allah with out knowledge. Sura 6, verse 108.