Have a game plan. Ideally, it should start 2 years before your intended enrollment date.
Identify the programs, take the required courses, plan for GRE, take C++ and Python courses, build projects.
Start looking at quant interview books, work on your applications, getting recommenders lined up...