Cautionary Tales
"Star Trek IV" was about an alien race that was about to kill off people for killing all the hump backed whales. There are other stories beyond this that are presented as cautionary tales. Cautionary tales are a good way to learn a lesson without suffering the consequences in the tale.
Roger Zelasny wrote a story called "Today, We Choose Faces". The story is about conservation with a twist, the aliens are already here but are using the humans to terraform earth to match conditions of their home planet. Humans were like yeast, producing waste products beneficial to the aliens and expected to die after the atmosphere changed. This would be a fourth possible alien interaction in addition to the beneficial,neutral and malevolent forms of possibilities.
While the idea of being wiped out by aliens for messing up our planet has low probablility, it is still good to use this idea to look at ourselves dispassionately. We have already done this, it is called fiction or science fiction.