Macaulay Langstaff's superb late volley handed us victory on a dramatic afternoon at York Road.
Having gone into the break 3-1 up thanks to goals from Ruben Rodrigues, Quevin Castro and Langstaff, a below-par second-half display saw us relinquish our lead.
But, with seven minutes left, Kyle Cameron marauded down the left and produced an excellent cross which Langstaff did brilliantly to fire home.
Luke Williams named an unchanged side following last weekend’s 4-1 win at Scunthorpe, but there was movement on the bench as new signing John Bostock and fit-again Aaron Nemane replaced Ed Francis and Kairo Mitchell.
The head coach’s selection meant Castro continued in attacking midfield, and he had the game’s first shot inside two minutes when he dipped a 35-yard free-kick over the crossbar.
We’d made a dominant start and our early pressure told on nine minutes when the marauding Cameron found himself in the left-hand section of the box, where he dropped his shoulder to send his marker into no man’s land before seeing his deflected cross loop invitingly towards the back post, where Rodrigues arrived to finish emphatically.
Rodrigues came so close to a second on 18 minutes when he flew a free-kick inches wide of the post, with Langstaff seeing an effort palmed away by Dan Gyollai six minutes later.
Sam Slocombe was then called into his first save of the day when he pushed Sam Barratt’s shot behind after the hosts had robbed Rodrigues and countered.
And they had an unlikely equaliser from the resultant corner, the ball hitting Emile Acquah’s body and finding its way into the bottom corner of Slocombe’s net.
We could, and perhaps should, have restored our lead when Jim O’Brien’s low, long-range shot skidded off the turf and was fumbled by Gyollai. Langstaff was first to it but, with his left foot, he couldn’t beat the keeper.
It didn’t take us much longer to deservedly restore our lead, though, with Castro netting his second in as many matches when his dangerous left-wing cross evaded everyone in the middle and found the far corner.
And, two minutes later, we had a superb third when O’Brien played a clever ball into space for Rodrigues. In turn, he flicked the ball through a defender’s legs to Langstaff who swept home his 20th goal of the season in typically confident style.
It looked like we were set for another comfortable away victory but our hosts had other ideas and, within minutes of the restart, Acquah had his second when we failed to deal with a long throw into our area and he again managed to bundle the ball beyond Slocombe in a crowded penalty area.
The goal seemed to knock us off our stride somewhat, with us failing to reach the same levels of dominance we’d achieved in the opening 45 minutes, but we still came close to a fourth when Langstaff latched on to a bouncing ball in the area and sent it narrowly wide of the far post.
But, four minutes later, we were to rue that missed opportunity as the hosts broke the offside trap to cross from right to left for Kane Ferdinand, who had the time to compose himself before drawing his side level from 12 yards.
Williams, who had already sent Sam Austin on for Castro, made two changes as we pursued the all-important next goal – Cedwyn Scott replacing O’Brien and Matt Palmer making way for Bostock.
And Scott was straight into the action, holding the ball up on the edge of the area before laying it off for Rodrigues, who couldn’t keep his shot down.
But we had our winner on 83 minutes when Cameron progressed down the left and delivered the perfect cross to Langstaff, who did brilliantly to leap into the air and guide the ball past Gyollai to spark scenes of jubilant celebration.
The hosts were given six minutes of added time to try and rescue a point but we stood firm to keep our place at the top of the National League.
STARTING XI: Slocombe; Cameron, Baldwin, Brindley; Chicksen, Adebayo-Rowling; O'Brien (Scott 73'), Palmer (Bostock 81'), Rodrigues, Castro (Austin 59'); Langstaff
SUBS: Bajrami, Nemane
BOOKINGS: Palmer 53', Cameron 90'