RER B trains are safe enough, except for the rather frequent pickpocket incidents, especially during the rush hours when the trains are crowded. Unfortunately, this tends to be an expected common reality when travelling via train in a big city such as Paris. In any case, if possible, you should avoid travelling with the RER B lines late at night.