An instantaneous evaluation about intentions of an approaching person or subject based upon visual clues might have very strong connection with initial stages of biological evolution.
According to one hypothesis presented by Mr. Sachchidanand Swami (an independent Human Behavior and Nonverbal Communication Researcher from India), an instantaneous evaluation based upon visual clues obtained from any person or subject might have begun with evolution of vision itself.