Melbourne is a low-risk destination. Australia in general is one of the safest in the world.
Like most big cities around the globe, pickpocketing and transport accidents can happen, so you must never be careless. But if you’re worried about violent crimes, while it’s there, it doesn’t happen all the time. Just practice common sense, keep your valuables with you, and don’t invite trouble.