It depends on the situation at hand. If your friend is in trouble with the law because he/she broke it, better let the proper authorities deal with it. When it comes to financial problems, try to determine the nature of the problem. If your friend only needs money for any capricious purposes, then I don't think it's wise to enable your friend for it. If it's an emotional or psychological problem, being there and empathizing with your friend is more helpful than giving unsolicited advices.