Is prevention of ingrown hairs a post shave care issue or a pre-shave prep issue?

Suggestions?