What you initially said was correct, to a point.
If we'd won at Firhill, we'd have stayed up. As we drew in injury time, we went into last game of the season against an already relegated Airdrie knowing a win would see us safe. We didn't. Coupled with Accies completely phoning it in against Cowden saw us consigned to the play offs and subsequent relegation.