Berwick won through to the fourth round of the Scottish Cup when they beat East Fife, who had three players sent off in a pulsating cup tie at New Bayview.
It was a morale-boosting victory for Rangers, with only one win in their previous eight games - against Formartine in the second round - but they made hard work of it, twice surrendering the lead in a dramatic first half after Craig Dargo netted twice.
A Lee Currie penalty restored Berwick’s advantage for a third time in the second half, but the home side had three players sent off in the second 45 and finished the game with only eight men.
Berwick welcomed back Stevie Notman, who had been a doubt with a foot injury. New signing, Ross Drummond, who is back on loan for a second spell from Dunfermline until January, went straight into the side, whilst there was a rare start for Dargo up front.
Berwick had an early chance with Paul Willis going close from a Lee Currie free kick in the first minute and Ross Gray also pulled a shot wide just a few minutes later.
Paul Currie then shot wide as Rangers made the early running, but after ten minutes the visitors got the breakthrough when Dargo fired home after Gray’s initial effort rebounded off a post.
However, the lead lasted just over a minute as East Fife hit back straight from the re-start, Scott Smith finding the net from a free kick.
Billy Bald saved well from an Allan Walker shot after 15 minutes, and as the home side grew into the game Smith shot wide.
Walker shot over as East Fife started to turn the screw, but at the other end Darren Lavery headed over from a Lee Currie free kick.
The game then settled down before Dargo struck with his second goal after 35 minutes, a stunning volley after a good run and cross by Kerr Young.
As the interval approached a Lee Currie free kick was parried away by home keeper Miller, but almost right on the half-time whistle the Fifers drew level for a second time, Walker heading home from a corner by Smith.
Early in the second half Lee Currie shot wide after a good run by Gray, and Paul Currie had a shot saved by Miller.
Rangers went in front for a third time after 56 minutes when Paul Willis drew a foul from Walker in the box and Lee Currie slammed the resultant penalty into the top corner of the net to put Berwick 2-3 up.
Lee Currie shot wide from outside the box before Stephen Tulloch got up for a header at the back post after 70 minutes, but he headed it into the ground and it bounced over.
At the other end Jon McShane, just minutes after being introduced as a substitute, forced Bald into making a good save, but the home side suffered a setback when another substitute, Jamie Beaton, was sent off for a second bookable offence after 75 minutes.
As the Fifers tried to salvage something, Ewan Moyes headed over from close range, but they had another two players - Caolan McAleer and Walker - sent off within the space of two minutes near the end and Berwick won through.
East Fife: Millar, Campbell, Moyes, Naysmith (Beaton 57), Smith, Barr, Mullen (McShane 69), Walker, Brown, Austin (McAleer 78), Smith.
Berwick: Bald, Notman, Young, Tulloch, Drummond, Gray (Hoskins 82), P Currie, L Currie, Willis (Gold 78), Dargo, Lavery (Russell 87).