If you do happen upon a bear (or it happens upon you), the U.S. National Park Service you to stay where you are or move slowly to the side. Don’t run or scream. Don’t climb a tree since both grizzlies and black bears can , too. Instead, make yourself seem like difficult, big prey: Slowly wave your arms to make yourself large and try to remain calm. Talk out loud, to calm yourself to indicate to the bear that you’re a human, the agency advises.
(Excerpt from 'How to survive an encounter with wildlife—from bears to bison’, nationalgeographic.com, 2023)