Advising the people around us is a good thing to do. However, there are certain guidelines our deen mentions when advising someone. Especially when a person has done something wrong, these guidelines should be followed to ensure the person you are advising takes it in the best way possible.
Shaykh Saad Tasleem sheds some more light on the question