Tgree ways that work, use them seperately or all together:
1) An old folk remedy that works.
Save human urine and place in a clean discarded milk jug. Do not dilute. The urine, when sprayed or sprinkled around plants weekly will prevent them from eating the plants.
The rain wasjes it away and does not harm any plants that may be harvested, a simple washing cleans them up.
This has worked in Canada, USA and in Japan against deer that enter gardens to eat produce.
2) The other thing that works is to put a dog in your garden at night, if it is fenced in , this works quite well.Even if the dog is little, the bark simply puts the deer off their food.
3) Finally there is the ancient remedy that worlks quite well. It a small clicking fountain called Shishi odoshi. It spooks deer and keeps them away. Shishi odoshi can be ordered in online.
https://www.amazon.ca/Aquascape-78306-Shishi-Odoshi-Inspired-Poly-Resin/dp/B07NQR4G88
https://www.amazon.ca/Bamboo-Accents-Rocking-Fountain-Shishi/dp/B001CS4S0W
“The urine, when sprayed or sprinkled around plants weekly will prevent them from eating the plants.”
And fertilizers the plants.