When do you have to stop sleeping on back?

I keep reading different things about this and I honestly dont know what to believe. I plan on asking my dr but my appointment isn't till the first week of January.

I'm 24 weeks and I love to lay and fall asleep on my back, but am i putting danger to my baby?