Legendre's Criterion for Continued Fraction Convergents