Fix boundary error in validation messages

The code checks for less than or equal to, and the error message said "less than". I changed it to "at most".

Sorry for the duplicate pull request--I did the old one in the develop branch, and I wanted to resubmit it in a patch branch.