Check quantity whenever input or change event occurs.
Use spinner option for better safety. Show alert if trying to enter over max quantity.
Check quantity when placing order at back-end.