Moving baby?

When your baby moves to one side and pushes up or whatever they do in there, how do you move them when it hurts?! I don’t mind it but sometimes the pressure of him pushing on something hits a nerve and is sometimes painful... it’s like he’s trying to break free 😂