When you love someone you shouldn’t

What do you do when you’re in love with someone who doesn’t love you back? I know he doesn’t love me but I can’t help it. I want the feeling to go away but it hasn’t for months and it’s tearing me apart. What do I do?