An easy one could be checking that aggression + morale < n, where n is whatever we want to count as dangerous.  For the time being, I added a "GROUP_SAFE" and filled it with animals that hopefully shouldn't prove threatening.