In order to travel, your passport is expected to expire at least 6 months prior to your travel date. I'm quite sure that you will not be able to enter Mexico. My advice to you, would be to go to your nearest embassy AS SOON AS POSSIBLE, and apply to renew your passport. You may be able to get it quite fast, but it will probably cost you a bit of money to speed up the process. Good luck, and I hope you are able to get to Mexico soon.