Mikey Moore struck in the 88th minute to rescue a dramatic draw for Rangers against bottom side Livingston, who surrendered a two-goal advantage after being reduced to 10 men.
The result dents Rangers’ Scottish Premiership title hopes, leaving them four points behind leaders Hearts with 10 matches remaining.
For Livingston, the gap to second-bottom Kilmarnock remains eight points, despite a spirited display.
Marvin Bartley’s side looked set for a famous victory when Brooklyn Kabongolo rifled in a stunning volley before Lewis Smith doubled the lead with a driven finish.
It threatened to be Livingston’s first win in any competition since August - and one of the division’s biggest upsets in recent memory.
However, the contest turned on the hour mark when Cristian Montano was shown a red card for hauling down Djeidi Gassama as the last man.
From that point, Rangers piled on the pressure.
Livingston goalkeeper Jerome Prior produced a remarkable display to keep the hosts ahead, while Danny Finlayson’s astonishing goal-line clearance added to the resistance.
But Rangers eventually found a way back.
Emmanuel Fernandez lashed in a thunderous strike on 81 minutes to spark hope before Moore glanced home James Tavernier’s cross seven minutes later to level the score.
There was late controversy when Moore went down on the edge of the box under a challenge from Cammy Kerr.
Replays suggested contact without a touch on the ball, but after a lengthy VAR check, no foul was awarded - a decision that will be widely debated.
Rangers dominated statistically, registering 31 shots, 14 on target, and an expected goals tally of 3.63.
On another day, such numbers would likely have delivered a comfortable win.
Instead, they were thwarted repeatedly by Prior, who made nine saves in a standout performance.
Efforts from Tuur Rommens, Moore and Bojan Miovski were all denied, while a frantic goalmouth scramble before half-time somehow stayed out.
Yet Rangers’ defensive lapses proved just as costly.
Manager Danny Rohl had warned of Livingston’s threat from set-pieces and counter-attacks, and both goals came from moments of inattention - Kabongolo escaping his marker and Smith left free during a second phase.
For Livingston, the draw is both encouraging and frustrating.
Their shift to a back three has added defensive solidity, while Robbie Muirhead and Smith offer a genuine counter-attacking outlet.
Playing more than half an hour with 10 men made their task even tougher, and they will feel they deserved more.
While Montano’s dismissal appeared justified, questions remain over the late VAR call and the nine minutes of stoppage time.
In the end, Livingston’s heroic resistance earned them a point - but Rangers will view it as two dropped in the title race.
Livingston boss Marvin Bartley: "A real rollercoaster of emotions, but you have to remember who we're playing against. If you'd offered me 2-2 before the game I would have taken it.
"2-0 up we looked pretty comfortable. The turning point was the sending off. The players gave me everything today and that's all I can ask for."
Rangers head coach Danny Rohl: "Disappointed that we didn't take three points.
"We give them the set-plays too easily and then we tried everything. Big compliment to the team, to the supporters who pushed us.
"We showed again our comeback character. Ten games to go and it is an exciting race."