Jack Midson's second-half penalty gave Wimbledon a 2-1 home win over Fleetwood after the Londoners had seen their initial lead wiped out after just three minutes.
Victory ensured there would be at least someone finishing below the Dons with Dagenham hosting York City, but despite the Daggers being made to sweat by a 1-0 defeat, Barnet's 2-0 loss at Northampton ensured it would be Davids' men and Aldershot departing 'the 92'.
Champions Gillingham were much-changed in a 3-2 defeat at Burton Albion - who will compete in the play-offs - but will care little about the result having already sealed promotion.
Rotherham, however, made sure on the day with a 2-0 success which confirmed Aldershot's relegation. They snuck into second place ahead of Port Vale, who could only draw at Wycombe.
League Two results
Accrington 0 - 3 Oxford U.
AFC Wimbledon 2 - 1 Fleetwood
Burton 3 - 2 Gillingham
Cheltenham 0 - 0 Bradford C.
Chesterfield 4 - 0 Exeter C.
Dagenham & R'bridge 0 - 1 York C.
Rochdale 1 - 0 Plymouth Argyle
Rotherham U. 2 - 0 Aldershot T.
Southend U. 0 - 1 Morecambe
Torquay U. 3 - 3 Bristol R.
Wycombe W. 1 - 1 Port Vale
Northampton T. 2 - 0 Barnet