She should have slashed the tires, but more importantly, when she was in sight of the prison, she should have kept going. Stopping is what caused her predicament.
To me it looked like Andrea was completely exhausted by the time she got to the prison. It appeared she tried to call to Rick but she couldn't speak at all. She barely made a peep.