Cowdenbeath 2-3 Dumbarton
Dumbarton secured their own Division One safety to leave Cowdenbeath needing to win their last game of the season to stand any chance of avoiding a relegation play-off.
Colin Cameron's side are one point behind neighbours Dunfermline Athletic, who boast a much better goal difference.
The Blue Brazil took an early lead against the Sons but conceded three goals in nine first-half minutes.
Craig Moore scored in the 15th minute when he was put through by Kyle Miller and placed the ball past Sons goalkeeper Stephen Grindlay.
Dumbarton almost levelled instantly, but Andrew Graham's header was saved by Thomas Flynn.
The equaliser came 10 minutes before the break as Scott Agnew brilliantly lobbed the stranded Flynn from 30 yards out.
Four minutes later, Flynn was beaten again as James Lister headed in from Mark Gilhaney's cross.
The Sons made it 3-1 before half-time as Agnew scored from the penalty spot after Cameron had fouled Steven McDougall.
Cowdenbeath pulled a goal back with two minutes left as Miller headed in from close range but were unable to force a leveller.
While Dunfermline have a home fixture against relegated Airdrie United, Cowden have the harder task away to in-form Hamilton Academical.
Cowdenbeath: Flynn, Brett, O'Brien, Armstrong, Adamson (Linton 68), Cameron (Ramsay 73), McKenzie, Stevenson, McAllister, Miller, Moore. Subs Not Used: Colin Stewart, Cowan, Milne.
Booked: Adamson, O'Brien.
Goals: Moore 15, Miller 88.
Dumbarton: Grindlay, McGinn, Graham, Lithgow (Creaney 87), Smith, Gilhaney, Turner, Agnew,McDougall, Fleming (Prunty 62),Lister. Subs Not Used: Ewings, Lamont, Ronald.
Goals: Agnew 35, Lister 39, Agnew 44 pen.
Ref: Stephen Finnie