sex, rib pain ouch ??

so im in third trimister and im not sure if sex is bad thing this is my first child. whenever were finshed i make sure to clean myself but i always get this werid burning sensation that i never used to get .. ? does anyone have the same promblem. i also have rib pain it goes away and comes back i tried so many different bras dont know what else to do but it turns hot and cold and my doc says its becuase of the baby ..