The more complex the growing environment, the less any individual plant is likely to suffer damage from pests. We have a large yard and use a variety of techniques to bring some balance into the plant and animal populations. We practice intensive gardening in most beds, where egg plants may be grown among strawberry plants, green beans, garlic, cucumber plants. Squash are grown surrounded by sweet peas and green beans. Most every bed is a mix of at least three different plants. Also, the planting beds are scattered around the yard. We have three smaller planting areas that are 50 feet to 150 feet from the main gardening area.
Our yard is very naturalized and somewhat unruly in some areas. We have a large (about 1/4 acre) naturalized bed of annual and perennial plants, but most weeds are allowed to grow right along with the cultivated plants. Most of the perennial plants are now self sewn. We have a second naturalized area that is smaller but maybe 50 feet by 75 feet that is mostly dedicated to butterfly and bee host plants. It as well is not heavily groomed and lots of native 'weeds' grow right along with the more intentionally planted flower plants and vines.
As a last touch, several years ago I started planting a zig zag of flowering/fruiting, wildlife friendly shrubs. The irregular line runs between various beds, an gives somewhat of a secret garden effect as one walks through the various spaces. All of this together gives tremendous habitat complexity over the approximately two acres that it is all planted. IMO that complexity provides for a better balance of critters, and helps prevent any kind of major infestation on most vegetable crops. The Japanese beetles for example, seem to be much happier spending time in our wildflower garden than they do in munching on egg plant leaves, one of their favorite snacks. The flea beetles may find one egg plants but will totally ignore one that is being grown several feet away, that has a barrier of other plants acting as somewhat of a shield.
While our effort is over a somewhat grander scale, IMO such intensive approaches that emphasize habitat diversity and scattering or randomization of plantings, will work to improve both the quality of a yard gardening area, and will help minimize 'pest' problems as well.