Hi Emile, mm... I'm not sure if this could work.
In the onSave event you can make verifications before an Object is saved, so, you could check there if the quantity is the right, and base on that, allow or not the "Save".
I hope this helps.
All the best.