You should help the person by telling a grown up and then make them feel special until some help arrives. The second best think to do is to let the person know that there are some people who cares about he or she and to not take their life.
Hope that really helps to prevent the suicide.