Well I think you should not play with your profit as it is very risky. Once you have earned alot of profit you should just cash out everything. As gambling is pretty risky and depends only on luck you might even lose all your money. Greed is a very big problem which will lead you to loss, so just cash out after you get profit and stop playing, try not to get too addicted to gambling.
Yes, you should stop when you reach atleast double the amount in your bankroll. Otherwise, you will start to think about doubling it over and over again, until you fail. The possibility to win and lose in gambling is countless, so better stop when you win and come back again the next day.
The only problem is that, a gambler don't want the euphoria to end so they bet up until everything is gone.
If we reach a large profit margin, thinking about stopping is a very reasonable thing, we should not continue playing, it only increases the chance of losing all the money we win but the fact is that we rarely achieve a large profit margin, mostly just small profits. And we are always greedy, desire a greater profit, that makes us lose everything, both our profits and our capital, this case is the case that I frequently see, gambling makes our minds uncontrollable, we can not stop until our account is zero. So, theoretically we usually say we stop when we get the profit but the reality is the opposite