I have issues with men

I was molested as a child and I think that's distorting my view on men. When a guy likes me and tries to pursue me I become afraid of them and push them away. Most of the time I hurt their feelings so that they don't beg for me to be with them. However, if a guy doesn't like me I am capable of becoming infatuated with them. I think I subconsciously enjoy the drama and the suffering that one sided relationships bring. I know that it's not healthy but I don't know what to do. Please help