Curious if sex or master bating is safe

Patient: I had a baby 3 weeks ago vaginally with no complications or tears. I haven’t had my follow up appointment yet and was curious if it was safe to have sex or master bate at this time.

Symptoms: Spotting occasionally but no bleeding for the past few days

Doctor: