I want to take ib profen but in tww

My cramps are so bad tonight that I really want to take ib profen. It's 8 almost 7 days until my period and I feel like I've already started. This is a bad plan right? Taking pain reliever? I'm allergic to Tylenol.