We can set conditions category-wise. To do that WooCommerce -> Min Max Step Quantity menu.
On the SETTINGS (UNIVERSAL) section, Select Categories from “Choose Category” Option and set values.

We are going to set product’s
- Minimum Quantity
- Maximum Quantity
- Quantity Step
- Default Quantity
Minimum Quantity: I have set the minimum value of 5. That means customers must have to buy a minimum of 5 items. They can’t add less than 5 products to the cart.
Maximum Quantity: I have set the maximum value of 100. That means customers can buy a maximum of 100 items. They can’t add more than 100 products to the cart.
Quantity Step: Step value is 5 here. When anyone clicks on the plus button, then the quantity will increase by 5 as well as when someone clicks on the minus button, then the quantity will decrease by 5.
Default Quantity: I have set the default value of 10. That means the product will have the default value of 10.
After that click Save All button.