Lucerne is a safe city for the most part. You can explore the city solo, as a couple, or in a group without worrying too much about getting robbed.  Even travel at night time is also fine, just ensure you are navigating well-lit areas, and not venturing into unknown places.