I told my kids when they were little, 'you've got an alarm bell inside of you, if that alarm bell rings, you listen to it. You do what you need to do to get out of that situation, and tell a trusted adult, and we will sort it out.'
I reckon that as adults, and particularly as women, we ought to be encouraged more to listen to that alarm bell, and to act upon it.
As to what is it he's saying, and is it that bad, there's two parts to communication. There's sending, and there's receiving. He may think that what he's saying, is perfectly acceptable - maybe because in his mind it's all perfectly innocent, or maybe because he's a creepy little man who gets his jollies flying under the wire, while knowing he's making a woman feel uncomfortable.
However, the receiver, is perfectly entitled to say, 'I don't like you making comments like that, and I want you to stop. I find them inappropriate'.
If a person told you that they found what you were saying inappropriate, and that you wanted them to stop, the reasonable thing, surely, is to say, 'gosh, sorry about that, I didn't mean any harm, of course I'll not say anything of the like to you again', even if you genuinely did mean no harm, and thought they were being a bit precious?