Q- why do I feel like I'm starting my period after I have sex and then end up spotting and having brown discharge?

I've been with the same guy for over 3 years and we have sex like once a week, but right after we do it I feel really bad cramps. It doesn't happen during sex...only after?