I’m confused by the question. Are you asking about the best way to shave with an electric shaver or a razor or in general?
If you were new to shaving I would say this:
Don’t use an electric shaver, they’ve never given me a good shave.
That said, I don’t think preshave oil is a good idea with an electric shaver unless you have a good way to clean the blades off and prevent cloggin. I suppose if the shaver can run wet this won’t be a problem and could add to the closeness of a shave.
Ingrown hairs are generally caused by shaving directly against the grain. Make sure you shave with or across the grain. Generally a first shave would be done with the grain (in the direction the hairs lie down). A second shave can be done across for extra closeness. Make sure not to double back as you shave, cause this could be contributing to ingrown hairs. Be extra careful on the neck and chin. Grains get messy in these areas.
Get a nice moisturizing after shave.
That’s about it. Good luck.