Never write off a person simply because they’ve done something wrong.
If you were to be excommunicated because of the sin you’ve committed, every single one of us would be excommunicated just because Allah has covered. You do not mean you’re innocent.
So go easy on others and Allah will go easy on you.
We all falter, we all commit sins. So let’s not play the nobleman by trying to belittle others instead of helping them.