How does the brain know that the same snake deserves calm curiosity at the zoo and a hasty retreat on a wilderness trail?