The best advice I got is never to invest with money you don't have. In other words don't take loans to get the money for investing.
The other is never to put all eggs in one basket and that is also very true. Diversication is good and you always need to have multiple choice and a back up. If you stick to all this you will not get in ackward situation.