>>204148With proper companion planting you can encourage beneficial insects like parasitic wasps to help get rid of the pests.
Take these aphids for instance. The bloated brownish ones (mummies) are filled with braconid wasp larva.
You need to plant various types of flowers to help attract adult parasitic wasps. Plants like cilantro, dill, alyssum, asters, daises, etc are good for the wasps to get pollen and nectar from.