How can I get rid of it?

How do you get rid of a yeast infection starting early? I feel I might have a yeast infection soon bc my boyfriend and I had sex and it was pretty rough . It was protected but I feel like it’s going to get worse at the end of the week