Day and night are almost different destinations when you travel alone. Daytime is when solo travelers are safest nearly everywhere: streets are busy, transport is frequent, businesses are open, and even wandering into the wrong neighborhood usually costs nothing but a course correction. Do your unfamiliar exploring, your long walks and your navigation experiments in daylight.
After dark the calculus shifts in predictable ways. Districts fine at noon can empty out or change character completely, petty crime concentrates around nightlife zones and transit hubs late at night, and your judgment and options shrink with fewer people around and less transport running.
None of this means barricading yourself in at sunset; evening markets, night food streets and well-reviewed bars are among travel's best experiences. Ask your accommodation which areas are fine at night, because that local map of after-dark geography is different in every city and locals hold it.