Metro station stop design to prevent people from commiting suicide

How to design a metro train stop that would prevent people from endangering themselves by accessing the rails when a metro arrives (perhaps by implementing the design of special doors or elevators leading into the train itself)?