How do I stop having work crushes because I only keep getting disappointed almost every day as I keep seeing they don’t like me back and won’t ever ask me out?

I don't think it's a good idea anyways , to be dating someone you work with. The problem is what if...