Or olive oil or similar, they won’t walk across oil.
Or diatomaceous earth: https://www.youtube.com/watch?v=RzoD0AaUzgo