When to stop sleeping on belly and back

Samantha

When are you supposed to stop sleeping on your belly or flat on your back during pregnancy!!?