What could it be.

My period is due in 7 days. Today I had a very sharp cramping pain on my left side and then went to the bathroom and wiped a tiny bit of brown discharge. Nothing else since then.