Pregnancy or infection ?

About a week ago now, I started getting slight cramping and a weird smell. That went on for a few days now I have brown discharge with slight redness. Today my bf and I had intercourse (tmi sorry) and it was painful? It never is. So I’m worried something is wrong. I just need advice. I’m going to schedule an appointment asap in the morning, just wanna hear what yall think it is. Or have any suggestions. Thank you