Biologists say some friendly animal behaviours are actually distance warnings before you pet that animal.