The best way to reduce the risk of snakes is to make your yard unattractive to them.
Mow your lawn regularly. Tall grass is an ideal hiding place.
Remove piles of wood, branches, rocks, old boards, and construction debris. Such areas provide shade, moisture, and protection.
Seal cracks and holes around the foundation of the house, garage, basement, shed, and fences.
Control rodents. Mice and rats are one of the main reasons snakes get near homes.
Don't leave pet food out at night. It can attract rodents, and rodents can attract snakes.
Keep your yard dry and tidy. Damp, dark, and neglected areas are more attractive to many animals.
Check basements, garages, sheds, and storage areas regularly, especially if they are rarely used.
If you live in an area where there are venomous snakes, do not try to catch, chase, or kill them yourself. This can be dangerous. It is best to call a professional or the appropriate authorities.
Summary
It's easy to wish there was a "magic smell" that would instantly solve the snake problem. Such a solution sounds simple, cheap, and convenient. But nature rarely works that easily.
Snakes move according to their needs. If your yard offers them food, shelter, and peace, a little cinnamon, vinegar, or garlic won't reliably stop them.
Scents can be a helpful measure, but the real prevention is in maintaining the space. The fewer hiding places and food sources there are around your home, the less likely snakes are to linger there.
The best defense is not in a strong scent, but in making your yard a place where the snake has no reason to stay.