A study of how dung beetles survive deforestation in Borneo suggests that species with more competition among males for matings are less likely to go extinct, according to new research.