I have been told that martingale end up with losing everything

People usually do because they don't quit whilst they're ahead and get greedy and keep going until they've lost it all.
Well the thing is that with martingale gamblers will need to go from potentially being up a small amount to being down a lot to make up their last lost bet
It starts well and ends terrible...that's usually how martingale works
But if it starts well, then why not stop and then do it again.
Build the balance in small increments or cash out each time so it adds up?
As I said above, you're up after 1 winning bet. But who quits after 1 bet? The answer is nobody. The second bet might very well be the one that breaks your bank. If you cash it out the odds are in casino's favor so you will most likely go bust before earning back your initial roll-out.