Period

So I’m supposed to start my period in 3 days according to the app but I had sex 2 days ago protected but usually it comes on like the 23 maybe 24 or 25 it’s tricky but I’m getting cramps like it’s about to come and I have diarrhea like when I get around my period. But I also haven’t had sex in months and my period came back to normal since I didn’t have sex for a long time but I had sex like the beginning of this month when I got off my last period and that was protected to