Rib pain 38 weeks pregnant

38 weeks pregnant and under one of my boobs at the top of my ribs on one side is so painful. If I try massaging it to feel better I get sharp pains, and also if I breath in to deep I get sharp pains. At first i thought it was from sleeping in an awkward position but it's been a few days now and it's causing me so much pain. Advice?