there’s a right and wrong order
Lowe’s recommends (in this super helpful video
!) to first paint the bevels, then panels, the center stile, rails, and finally, the outer stiles. Adapt this plan to the contour of your door and ask a specialist at your local hardware store for help if you have questions.