While exiting the CAT 980 loader, employee was using 3 points of contact and facing the machine as required. During the descent, they believed they were on the last step and attempted to place a foot on the ground. However, they were actually on the second to last step and missed the final step, resulting in a fall to the ground that rolled their ankle.