Imagine there is a species that can reproduce asexually or t…

Imagine there is a species that can reproduce asexually or they can reproduce sexually. The species is pretty intelligent and they realize that they are less genetically diverse than they used to be. Which method of reproduction should they use to increase their genetic diversity?