Rangers left it late to record all three points against an uncompromising Arbroath at Gayfield Park.
Ally McCoist's men now go into the Ramsden Cup final after preserving their unbeaten Scottish League One record
Fraser Aird's corner was headed in by John Daly but the home side hit back and sloppy rearguard action resulted in Paul McManus equalising for Paul Sheerin's men.
The Red Lichties pressed for a second goal but Aird struck late in the game to secure the points for the Gers.
With five games remaining Arbroath now find themselves seven points adrift at the bottom of the league.
ARBROATH (4-4-2): Wood; Travis, Keddie, Hamilton, Lindsay; Cook (Adams 90), Nicoll, Chisholm, Sheerin; Linn, McManus
Subs Not Used: Yao, Robertson, Scott, McWalter, Thomson, Morrison
Goals: McManus 60
RANGERS (4-4-2): Bell; Foster, McCulloch, Faure, Wallace; Peralta, Crawford (Gallagher 70), Hutton, Aird (Smith 87); Clark, Daly (Shiels 87)
Subs Not Used: Simonsen, Cribari, Hegarty, Telfer
Goals: Daly 18, Aird 86
Bookings: Foster, Daly
Write for GiveMeSport! Sign-up to the GMS Writing Academy here: http://gms.to/1a2u3KU