Diatomaceous earth doesn't DETER them, it abrades the hard exoskeleton so the pest dehydrates rapidly and then dies. Get some DE if you want to spread anything on the soil surface. Really. Sand doesn't do a thing, and if it's not washed, can add salt to your soil.