Sentence:  Sometimes artificial light becomes an <WSD>evolutionary trap</WSD> as the age-old biological imperatives of a species, which helped it survive for eons, turn into liabilities. 
Meaning of the word marked with <WSD> tags:  The situation of an evolved behaviour or trait of a species becoming detrimental to the survival or reproductive ability of individuals, possibly leading to extinction.