It's rather dangerous to travel late night on suburban trains to and from Warsaw. Some lines are more dangerous, some are safer. It's pretty OK during daytime, but you should rather avoid it late evening, say after 10 p.m. If you still have to use it, try to find a more crowded area on the train, usually in the front of the first carriage.
These trains are typically yellow/blue or orange colour.