Add to Cart Qty Check

even if i have only 10 quantity available only even it allow customer to buy 100. 

It needs to do qty check before it allow add to cart.