You do not need to follow instructions that are unsafe. Working over 12 hours is an unsafe condition, which is our maximum allowed to work in a single day. You risk exhaustion from working and could lead to something as simply as misdelivering a package to hitting a mailbox/car/person.
Working once it's dark out is also an unsafe condition. We, Rural Carriers, wear unmarked clothing. Approaching somebody's house after dark with a package is dangerous. The customer could quickly glance outside, see a person holding a package and think, "Somebody is trying to steal from me" and not understand you are USPS and delivering. Many bad things can happen from that split second glance.
When you refuse an unsafe instruction, make sure to explain to them why you are refusing and the reason it's unsafe. Then follow up with filing a 1767 about it as well. I normally follow mine up with a Grievance to get them on the record multiple times about it.