Although Padi considers a DM something less than an instructor, I think that instead being a DM is the ultimate level.
I became a one-star Cmas instructor at 20, and finally reached the 3-stars instructor certification at 25. At 26 I finally became a DM and I started working professionally in holidays resort in Sicily and at Maldives.
I was around 300 dives at that point.
A DM has great responsibilities, conducting groups of unknown divers in deep dives in the sea.
A DM must be fully self-reliant, as no one is going to help him. He must carry additional equipment for supporting the other divers (more gas, an additional long hose regulator designed to be donated, a spare mask, additional weights, an additional SMB, etc.).
He must be able to swim faster and stronger than any diver under his responsibility, for being able to "catch" them when required.
Working as a DM is wonderful, but truly challenging. And quite underpaid...
So, if you are committed to this goal, good luck, and take all the steps required.
Beyond rescue diver, and before the DM course, I would recommend the solo (self reliant), deep, deco, navigation and cavern.
At that point you will be around 200 dives, and technically ready for working as a DM.
You could also first take the DM certification, and later gain the required experience.
But the risk is to jump over some steps, and to get the responsibility over other divers before you are really ready for this.