Sex to close to my period?

Rae

How close to your period is it safe to have sex? It’s supposed to come on Friday, is it safe for me to have sex tonight? I am having light cramps, I’m scared to do it