MSA or CPA first??

Hi, I am a working professional and I completed my undergraduate in Accounting 6 years ago. I want to start studies again and complete MSA (online) CPA. I am stuck at the decision of whether to complete Masters in Accounting first and then go for CPA or vice versa. If any of you with a Master's in Accounting degree will be able to share your experience if it really helped you in getting ready for the CPA exam or not?