Electric shavers are best and safe when it comes to shaving pubic hairs, as there is not much fear of cuts and nicks. Only criteria for a good shave are that the hairs should be soft.
Take a hot shower, as this will soften hairs. Hot shower will also prevent bacteria as they could enter into the hair follicles after shaving. If you have a shaver, which could be used in wet, then you could also shave while in shower. Do not use electric operated shavers in showers. It is advisable to read manual before going for it.
If your shaver could not be used in wet hairs then dry all your hairs before using it. In most cases you would not require any shaving cream. Try not to use shaver in the same part of the skin for long. Red bumps and some forms of skin irritation is normal and with regular shaving of pubic areas it will diminish.
Never shave red or bumpy skin. To prevent irritation from small hairs, which could grow within 24 hours, shave daily.