Goal: To stay safe from animals on a hike,

Which of the following methods is more reasonable for accomplishing this goal?
stay on the marked trails only.