Dr recommended Caster Oil?

He

Went to my doctor this morning almost 39 weeks. still only 1cm dilated doctor suggested that I try walking sex spicy food and castor oil I asked her about the castor oil because I heard it was dangerous to the baby and it can make the baby poop inside and have breathing problems or die and she told me that it's perfectly fine to use and it doesn't make baby poop and makes mom poop and she said babies poop inside the womb more when they're past term I'm a little confused I don't know if I should try it or not