Premensurational cramps and brown discharge

Nupur
I am 21 week pregnt and feeling cramps in my thighs.. i asked doc.. she recommend me progestron tablet and cramps avoiding tab.. today i also had sonography.. and everything was normal.. but i dont knw y m facing this?