There is a product - Lakshman Rekha - draw a thick line around the items you want to protect. They are still hesitant to cross the border!
Is an army of ants marching towards the biscuit or sweets in your pantry? create a "moat" around the object by surrounding it with adhesive tape placed sticky side up.
We have to invoke Lord Rama only!It is rainy season and they have to hoard lot of supplies for themselves. Once they achieve their target, they do not come in your way. Of course, there are black-marketeers in them also.But what if we get a Ravan पिपीलिका(pipiilikaa) (ant)?