Do your homework and research before buying a company. Study business prospects of potential companies. This requires specific knowledge about businesses and skills to predict their future earning power.
If you don’t have that understanding, the stock is not for you.
If you want to learn more check out these resources: