pineapple core?

I've started eating pineapple core 2 days ago and I've been having weird cramps. Is this anything to do with this?