AF like cramps

AF is two days away but I got a faint line this morning. Now I'm having cramps like AF going to start. I'm kinda freaking out right now. I'm trying not to! Help! Is the a chemical? Anyone experience this and continue pregnancy?