There is lots of protection against incorrect connection. The polarisation of plugs is one protection, and electronic protection is another.
A lot of devices like routers have the power coming in through a diode.
A lot of effort goes into protecting vehicle electronics. The standard tests involve reverse polarity and lost of ground or supply when operating. The manufacturers don't want to pay warranty costs if one of their technicians plugs in something wrong, or a fault on a harness shorts two wires.