You can casually walk up to the bus stop and stand there with the person. Sometimes just the presence of a witness is enough to change bad behavior. Or you can ask the person if they want a ride somewhere or if you can walk them to the next bus stop. If the situation feels unsafe you can call the police.