Does "data validation" not working in your case?

Go to menu -> Data -> Input validation(?)
At "settings" tab, select integer as your input type.
Set your criteria here.