I would suggest looking at and searching yourself to see what part you had in causing the problem,if you did not play a part in creating the problem,let the person no that you did not but take the high road apologize and start to move slowly away because it will start to happen over and over,people do take your kindness as a weakness and will attempt to use you. I wish you luck,be nice but be no ones beating bag,physically or verbally.....hope you find solace in this answer.
In these types of conflict, before you say anything, you should walk a mile in their shoes.
Then when you do, you'll be a mile away.
And you'll have their shoes!
Give each other space and search your hearts. If you find yourself in the wrong, humble your self and ask for forgiveness. Don't let your pride over take you because you need the friend. If he is in the wrong, take time and at some point later bring it back so that you can talk about it when no one looks for a win. But it all takes wisdom.
I had an email political disagreement with a friend 2 months ago, and I was pretty steamed that she wrote her tirade and then emailed it to me -- and everybody else on the address list. I wanted very much to email her back and tell her not to bother talking or writing to me anymore, but I decided I would just give it a couple of days or weeks, not answer any emails from her, and let it cool down. It was a wise decision -- we met for dinner 3 weeks later, and just let the issue rest, after she explained she had been having a very bad morning at work the day of the email and was just overwrought.