There is no way 100% to stop defective products, but you can reduce your risks to acceptable levels if you hire an independent 3rd party inspection services when you are importing goods from China. Benefits are:
Professionalism: Working procedures developed for each product category.
Reliability: Objective results based on International Inspection standards.
Integrity: No conflict of interest.