Each species of snake will be different in their behavior and life history, so its important to know about each species you may encounter in your area.
There are a good number of venomous snakes here where we are living in Japan. We take general precautions whenever visiting an area that may have snakes:
wear tall boots,
wear pants made of thick material,
make your presence known by walking with heavy steps and using a long stick to rustle bushy areas before approaching or weeding,
carry a flashlight for checking dark or shady areas before approaching.
Most snakes I know of prefer to run away from people if they know people are coming. Snakes will sense the vibrations from heavy footsteps or a prodding stick. If they have made a nest, however, they may choose to attack.
Learn where they like to nest and get rid of possible nesting areas on your property. Learn what prey they like to eat and eliminate their prey from your property. If they eat
mice for instance, consider encouraging birds of prey or keeping a cat.
From Okinawa prefecture's guide to Habu (pit viper) prevention:
https://www.pref.okinawa.lg.jp/site/hoken/eiken/eisei/minnadedekiruhabutaisaku.html
From the same guide: "snake spray"
As far as I can tell it's just bug spray, but with more distance. You may be able to find something similar, like a long distance hornet spray.
Solid walls or fencing with very small mesh may help. Traps also exist, but are species specific.