Genetic engineering could save species from dying out