Having feelings for a friend

How do you stop having feelings for a friend without having to distance yourself in the friendship? I’ve developed a crush on a guy friend of mine. We’re really close and we hang out and have sleepovers a lot and we talk to each other about our problems, like he’s there for me and I’m there for him. I don’t want that to change that but I can’t stop having feelings for him and I’m worried about it getting stronger and me just ending up hurt again and ruining a great friendship