What steps should I take to make sure that it is safe to work on an electrical device?

Firstly you need to ensure that the particular piece of electrical equipment is not live, i.e. any source of energy (i.e. usually electricity) has been fully isolated. You also need to ensure that the energy source cannot be accidentally restored before you have finished working on the device. Always ensure that you follow the manufacturers instructions on carrying out any maintenance procedures.