I suggest that you read this article from the CFA Institute: "Investing vs gambling: how to tell the difference"[1]
[1] https://www.cfainstitute.org/insights/articles/investing-vs-...