As far as defending your livestock, pets or property (crops, garden, etc) from animals, different states have different rules. I do not believe there is a blanket answer to your question. Check your states laws. A Google search will probably turn up something.
"Me fail English? That's un-possible!" --Ralph Wiggum
"A woman drove me to drink and I didn't even have the decency to thank her"-- W.C Fields