If a customer edits the quantities whilst on the cart page, then the number of items in the cart could be also be changed to 13.
in this instance, you could count the number of items in the cart, and if it is equal to 13, disable the checkout button and show a suitable message