Mexico is really very lax about what you are allowed to do while in Mexico on an FMM and the fee for one isn't very much at all. But what you can't do is stay past the departure date on the FMM which cannot be more than 180 days from when it was issued. INM agents used to be very willing to just put the full 180 days on every FMM but lately are asking questions about your return plans and only giving you shorter time periods. Apparently there were a lot of people who were living in Mexico and basically going to San Diego at the end of their FMM, staying a few days, and then reentering on a 180 day FMM to return to where they live. This has always been against the rules but I don't think INM really cared that much until recently, because the number of people doing it increased greatly.