Predicting suicide is hard. Currently the best we have is asking people whether they think they're going to kill themselves, seeing if they've made previous attempts or have self harmed in the last year, or seeing if they have an alcohol misuse problem.
It's true that people with depression experience reduced libido (sometimes from the illness, but sometimes from the medication), but it would be better to use depression as a risk factor.
Sorry but how do you know this?
Suicide is complex and there are different modalities: long term depression vs sudden stress being the most obvious. You can get a lot of (v sad) data if you search journal publications on suicide.
Then you have different responses to stress and depression (some engage in “risky behavior” which can include lots of sex for example). On the other hand depression has a confirmed hit to sexdrive.
I’m sure on a case by case basis you can get all sorts of variation, but the net statistics don’t support amount of sex impacting suicidal ideation, nor ideation (on average) impacting amount of sex.