Yes, it’s true that coffee grounds repel the snails. Caffeine in large doses is toxic to the snails and if you give the caffeine in small doses it will keep them away. The elements in the coffee ground can not be tolerated by the snails and they can’t tolerate their smell too. But 1-2% caffeine solution is more likely to kill the snails than coffee grounds.