This is going to sound silly... But, supposedly, ants really hate cinnamon sticks and will avoid them. You could place them around your plants as a natural repellent. They also don't like garlic, peppermint, catnip, rosemary, lavendar, thyme, basil, and aromatic stuff like that. You can just plant some of the herbs nearby too.