Start with the rules for the place you are visiting. Different animals and sites call for different distances. Find a safe stopping point, let the animal choose where it goes, and watch for any change in its behavior as people arrive.
Keep food secured, and use binoculars or a longer lens if you want a closer look. If the encounter blocks your route, wait or choose another way around. A brief view is enough when the setting asks for more space.