It is safe - but the wy is absolutly boring. Take a taxi or go by tramway. If you want to see the ancient city of Naples, you can walk. It is as safe as in other big towns. But beware of pickpockets at the main station.
We stayed in Naples two times for one weak each, and we came back with all our things.
Have a lot of fun in Naples