I seem to remember setting up a trigger on the cart display page for a site I did a while ago, which produced an alert if the customer changed the order quantity so that it exceeded the stock quantity.
This displayed a warning and disabled the checkout button.
If this would help, I could probably find an example.