Never quit your job and go all-in right away.
Start with a side project or freelancing.
Gradually replace your salary.
Then, once the income is stable, double down on the business.
I tried that once - didn't work very well. Fortunately I was able to find a better job after that, paying double - so in the end it all worked out well, but it's a risky move indeed.