Fix logic errors for at_least? and at_most?