For personal crimes, I saw reports of some robberies and a couple shootings - none were in the early morning hours though. That time if day, you should be with other commuters just going to work. Yes it is safe to take BART at 6 AM from the Hayward station.