WIBTA to stop letting my teenager walk to these train tracks?

My 15 year old had a close friend commit suicide back in February. He used to go to private Catholic school and he made close friends with another boy. His dad was a priest. I pulled him out of that school and put him in public school last year but they remained friends. It was known that this friend was gay. Family was not accepting and openly talked about how he was doing in conversion therapy. They said he was doing great. Back in February he threw himself in front of a moving train.

My kid is having a hard time understanding because he personally never had an issue with his friend being gay and at least 4x a week since FEBRUARY he goes and sits at those train tracks. I'm worried he may try to do something because hes depressed himself because he can't wrap his head around why his friend would do that. I don't know how to explain it. I can't imagine the pain that kid was in and I can't imagine going through what he went through so I dont think I can really explain it well to my kid but I don't feel comfortable with him going to those train tracks. I know he feels close to his friend but I'm worried of what he may do