Preventing constipation

What are some suggestions to prevent constipation while pregnant? I’m 39w and recently just started having constipation and I’m worried because I don’t wanna strain at this point. I’ve tried milk of magnesia it works somewhat.