You should apply for a Working Visa at the point when you have acquired the job offer or when you have been cleared as an investor. This is because you will need the job to offer proof in the application process.
The Working Visa may be applied for before arrival if you are not one of the visa-free entrants or while within Hong Kong as a visa-free entrant. The latter is so because you may have gotten the job offer while visiting Hong Kong.