Sin occurs. And it hurts people. It hurts those we know, the ones we love and even ourselves. So when we are angy at sin, it is to be a righteous anger - not judgemental, nor hateful, nor even vindictive. Just a look at the act and anger toward the act. We fight against :
Eph 6:12
For we do not wrestle against flesh and blood, but against principalities, against powers, against the rulers of the darkness of this age, against spiritual hosts of wickedness in the heavenly places.
NKJV
To bring judgement against those who have committed the sin, depends on the sin. One which you must sit on a jury may require you to review evidence with an open mind and looking only at the sin and evidence. Not the way the person looks, their background, their upbringing, their parents, or any of that... just the facts. Another is to simply pray for this person once they have sinned. After all, they will answer to God and God alone. We are no better than the next man as:
Rom 3:23-24
for all have sinned and fall short of the glory of God,
NKJV