Ants breathe through their thorax, so anything that is dusty, such as chalk, talc sprinkled around as a barrier, they won't cross because the dust suffocates them. They also don't like cayenne pepper, won't cross a line of that either. If you don't like insects and bugs, plant marigolds around your house, natural bug repellent.