How about using a growing medium for your vegetables that is not so rich in organic matter! The latter is a fertile breeding ground for beetle larvae. Put some horticultural sand or (expensive) rock dust into the mix and use fertilizer that contains sulfur and trace elements from the electrolyte series (iron, copper, zinc) so that you are growing more plants than soil organisms.