It is highly recommended to learn the concepts of machine learning first. Machine learning will allow understanding the algorithms working and how they help the machines process the data and make predictions.  Machine learning is based on the maths fundamentals, AI works on more rigorous maths like statistics, and deep learning is based on machine learning methods. ML only includes one layer of calculation, but deep learning processes the previous layer's results to predict the result. Thus machine learning has to be the first choice.