I'd argue investing is gambling with varying degrees of risk depending on what what you are putting your money into. Even if that risk is very low there is always a chance something crazy happens and you lose everything.
Ultimately it gets to the point of, is the risk higher than the risk of money in a bank account.
Given that (at least in the us) money sitting in a checking account is 100% risk with guaranteed negative returns (over time inflation will outpace interest), there are investments that can generally be considered safer (bonds, tbills, etc) than just holding dollar bills.