Spotting at 32 weeks pregnant

Cl

I’m 32 weeks and 3 days. I just got diagnosed with early onset preeclampsia and my baby has a velamentous Marginal cord insertion, but they told me I could still have sex. Now I’m a bit worried about this spotting that has started right after sex.