Please help to decide if I need to go in

So I have had alot of groin, back, and thigh pain tonight. I couldn't even walk it hurt so bad. After a while, it had gone away but my little boy has been going kicking and hitting really hard. I heard this could be fetal distress? Does anyone have any advice? I have been on a monitor because he had a time period I wasnt feeling him but everything looked fine each time. Now he is hitting and kicking so hard that I am getting so much pain. I am going to be 38 weeks this saturday