Safe for sex?

Skylar
I had my miscarriage on the 16th. I was bleeding heavily the day before and then for about two days after. It started to taper off, came back heavy for a day and now for about 4-5 days it's just been spotting. Its so annoying. Its old blood and just comes out randomly in small amounts. I desperately want to have sex with my husband, I need that closeness, but is it safe if I'm still spotting? I don't want to get an infection.