There is no age cut-off to attend medical school, but you should be realistic about your goals and how they fit in with your life circumstances. Medical school is a commitment of at least four years. Add to that your required residency after medical school, which is at least three more years.
According to the AAMC, the average age of enrolled medical students is 24.