what are the ways of protecting the habitats of animals