Masturbation during Pregnancy

Patient: Dear Doctor, We are expecting our second child seventh month. The first delivery was normal. Doctor has indicated that there no complications in the current pregnancy as well. Is it advisable to have sex till the end of pregnancy?. If sex is not advisable is mutual masturbation (without intercourse) an alternative for sex. Kindly adviceRegardsVishnu