Use landscaping timbers and hog wire
Just like building any fence.
It depends on the look you are going after. I like pocket fencing.
If you want to increase your garden area at the same time build a 2’ high wood or rock raised bed and put a dogeared wood fences long one side