This is well intentioned but bad advice.
Studies in behavioral finance are clear that ordinary investors should not invest in individual stocks over indexes. There are too many pitfalls.
Even hedge funds with teams of sector analysts rarely beat the market consistently.