What to do when I'm attracted to a jerk?

What should I do when I'm really attracted to a total jerk? He is super hot, super charming and our chemistries match so Well.
But when he opens his mouth, he is a total jerk. One thing after another he says even stupider things...
How could I trick my brain to not be attracted to him? πŸ˜‚
As a background story, I can tell that he use d to drive me nuts (not in a good way) when we were doing a several school projects together (maybe faith). But also, there was this instant chemistry between us and not soon after, he started to really like always be close to me, touching me (approppriately, not anything weird) and after that hugging me out of nowhere? And he always followed me around and found me wherever I went. This was last year tho, coz after that we didn't really have any lessons together or the lessons we had together he made me so furious I just wanted to punch him...
What to do when I'm attracted to a jerk?
Post Opinion