Javascript Adding Dynamically Input Box But It Should Stop Base On

Javascript Adding Dynamically Input Box But It Should Stop Base On