The right approach and the right mindset is to make trading a part-time job that is useful to supplement your income from the main job, and even if for example you manage to become a fairly professional trader by always being able to make a profit or when you are already in a situation where your profits are greater than losses then I think at that time you can think of a new plan, you can quit your main job but on the other hand you also have to build another place that can provide you with income such as maybe a business or other things that can provide a fairly certain profit.
You're absolutely right. Maintaining a main job while trading on the side is a practical approach.
Keeping your main job ensures a steady income, which safeguards your ability to meet basic needs without the pressure of needing constant wins from trading. It's a wise strategy to treat trading as a supplementary income source until, perhaps, your trading profits are consistently outpacing your losses.