Fix Earth first. Chasing Mars while we wreck this planet is straight-up stupid.
Mars is a terrible backup plan anyway. If we lack the tech to keep a perfectly habitable planet alive, terraforming a freezing rock is a complete pipe dream.