If you did something wrong, then say sorry, get a gift for them. If they choose to reject it then that's their own problem.
If you didn't anything wrong, then call them out and ask why are they behaving unjustly. If they choose to make up good, if they don't choose to make up, leave them. It's better to be alone than have bad people around you.