Most wild animals keep their distance from people, and you should keep your distance from wildlife. While actual attacks by wildlife are unlikely, they most often occur when animals are sick, startled, feel threatened, or become accustomed to people.
If you have the privilege of seeing wildlife in your backyard, enjoy the experience! Do nothing immediately; respect the animal and do not react unless it is behaving unnaturally. Do not approach or try to get closer to an animal.. Wild animals should be left undisturbed unless they are injured, orphaned, or causing damage.
After the animal has left the yard, survey your property to determine what, if anything, might have attracted the animal. Chances are it was just passing through. Remove anything (e.g., garbage, pet food, bird feeders) that might be an attractant. Review prevention solutions for additional information.