Crampy & spotting

If you still had more than 10 days til you next period and randomly you started spotting and feeling some cramps that aren't as intense as your period cramp what you think the reason is?. According to the app my high fertile days ended on the 9th and I had sex on the 8th.