This code isn't correct. (2, 7) is the check you want, and then with >= if I am not mistaken.