How do I stop flirting on job interviews?

So as I entered this interview, I quickly noticed he liked me, he was touching his hair and trying too hard to impress me, of course, I found it funny and played along, pretty confidently, flirted a bit, at the end, he no longer wanted us to stop talking and told me I made his day, as he has had a very stressful day, that I brightened up :)

Of course, I get the job, but now I feel like he will expect me to like him or something? I am just flirty and like to use my feminine power on a man when I see how much he likes me… I have a guy I like… I really need the job but I have already done it so many times, I wonder do I get the jobs because I am a flirt? I get the job with females too, but with them, I usually befriend them and chitchat.

Updates
1 y
I had a situation like that I flirted too hard until I got asked out by the boss and then I quit because it felt awkward, I was just flirting , had zero interest
Updates
1 y
Got the job and a dinner right after my first work day, at a very nice place, felt super nice, had a great fun. I have a guy I like though and he has the wife. He told me he thinks I have a magic power, I am kind, cute and a great professional and he just wants to make sure that he can keep me and I won’t choose someone else to work for and since it’s my day off today, he wanted to give me a good end of it.
How do I stop flirting on job interviews?
Post Opinion