Someone who is ambivalent may have conflicting wishes both to live and to die. Ambivalence is a common reaction to complex situations or circumstances, but ambivalence can lead to unhealthy determinations as one continually entertains suicidal thoughts. Offhanded mentions of suicide, killing oneself, or considering death should be taken very seriously, not necessarily because they indicate that someone is serious yet, but because these ideations are the first steps toward acting on them.
If you feel unsure of how to recognize dangerous suicidal behaviors, here are some signs to look for: https://www.nimh.nih.gov/health/topics/suicide-prevention/index.shtml
If you want to know more or need assistance, Click here for some resources to help