Masturbation

So I’m 21 weeks pregnant and high risk due to stress is it harmful to masturbate at least once? With or without a toy?