Chesterfield throw a lifeline to League Two chasers