Yelled at a Rude Homeless Man in Church. Was I wrong?

You are human, you lost your temper, learn from the situation, don’t do it again if in a similar situation.