There are a couple places you just don't get off the train in brooklyn: east new york and brownsville, but on the whole, even areas below the JMZ: east williamsburg/bed stuy/bushwick aren't nearly as dangerous as they may seem by looking at them.
Yeah unfortunately today there really is no area in Oakland near a BART station where I would want to be walking around with a pocket full of cash/tip money late at night. There's a lot of investment and excitement happening in West Oakland, and it's interesting to watch the process. But until they get the public safety issues to a somewhat reasonable level, I don't see it. What I see are young hip people moving in, getting robbed or worse and going back to the City to live in a shared closet for 2k a month.