Hugging/befriending someone who is hostile to you is usually the best way to make them stop.

WARNING: Applies only in dreams.