How can I limit quantity of product that can add to cart without changing the liquid?

My application has a function that can add a bundle of products to cart (ex. 4 piece of bottle from the same selling plan group) and need to set min/max limit to this set of product. (ex. total cart product quantity → min:2 max6)

In this case I can add set of product my cart, but after I open the cart page I still can change the amount of products freely. Is the any Shopify API that can set limits to this?

How can I set min and max of product in my cart without editing the liquid file and use another application?

Hii you need to change it in cart js.