Implantation or period?

My period is due in three days but I have a history of my periods being irregular. I’ve been cramping today and then I saw this. My partner and I have had unprotected sex.