Have you looked at the "Validation" tab for the field?
if(event.value > 180)
event.rc = false;
The reset command is not necessary.
Setting event.rc as false will reject the new value by itself.
Thank you for your useful advice- worked!!!
Thank you for a very helpful extra suggestion- it worked