The writer speaks of the way perverse people live as if it were a path on which the perverse will have trouble because of the natural "thorns" and man-made "snares." (See: [[rc://en/ta/man/jit/figs-metaphor]])
A person doing what he needs to do so he can live a long time is spoken of as if that person were keeping thieves away from a physical object. Alternate translation: "people who want to live a long time" (See: [[rc://en/ta/man/jit/figs-metaphor]])