You can set boundaries with the man or anyone for that matter but with some people, it doesn't matter how many times you tell them something.
People are stubborn and it can become exhausting to keep having the same talk with them over and over again. Often you can't train someone how to treat you; all you can do is walk away.
In the movie, "Easy Money", with Rodney Dangerfield, Rodney's mother-in-law was determined to 'train' him because she didn't approve of his lifestyle (he gambled, smoked, etc..). So the mother-in-law (who was rich) faked her own death and left everything to Rodney and his wife. The will stipulated that Rodney had to give up all his bad habits for one year in order to inherit the money. Rodney, with much effort and by the skin of his teeth, did manage to put an end to bad habits only to discover that his mother-in-law was alive. The mother-in-law, who felt triumphant, signed over her mansion to Rodney and his wife and lived with them to keep her eye on Rodney. In once scene, at dinner, the mother-in-law, grasped a napkin and crushing it in her hand (she sees the napkin as Rodney), said, "I did it; I now have him under control". But she was wrong. Rodney pretended to change. He still gambled and drank, but he did it stealthily in the basement of the mansion. Maybe in a way the mother-in-law did train Rodney but she simply trained him to be sneakier. She trained him to pretend to go along with her wishes.
You cannot train someone to be a different person. You can set boundaries but the person has to have respect for you in the first place. You can't train a jerk to be kind to you.
It can also be cruel to try to train a person. You can have a wild animal as a pet and try to train the animal to do your bidding but one day they could easily rip off your arm as they follow their natural instincts. I remember reading about a man who had a pet tiger and every once and awhile he said the tiger would look at him with a predatory stare and he'd have to threaten violence to keep the tiger in line. How pathetic is that? It is cruel to change a tiger into a pet cat. Just get a cat. Let the tiger be wild because that's his nature.
Some people try to train out a person's creativity/personality.