How do researchers know that a species is at risk of extinction?
The to assess the extinction risk of a species, Researchers first study the ecology and global populations of the species.

Then mathematical models are applied to  simulate the population dynamics and estimate extinction risk. 

The results are collected in the IUCNs Red list.

https://www.iucnredlist.org/