How to stop being delusional about girls?

Like this really hurts me most of the time. I meet a girl I like and I think so far in the future then nothing ever comes of it. If you’ve ever heard the song “Just a dream” by Nelly, it’s like that. Then I tell myself “I won’t date any girl from work and I’ll let myself improve in most parts of my life” then the same girl or a different one walks up and I’m falling for them. I don't know if this is loneliness or if I’m just wanting a close friend or what it is. I like them but I feel like I’m ruining good friendships
How to stop being delusional about girls?
Post Opinion