Camera has Shooting Problems
It stops letting me shoot after 22 and i have 36 exposure film
The Canon AE-1 is a 35 mm single-lens reflex (SLR) film camera for use with interchangeable lenses.
At this point you'll need to take the film out to try to figure out why its messing up.
Best to fully rewind the film and get the 22 images processed Vs putting them at risk trying to reload the film back.
Once you get the film out see if the shutter release works after each winding of the film advancement lever. Check your battery and the compartments contacts for corrosion.