How to accept only numbers that are < 250?