The injured employee was stepping out of the operator's compartment of the diesel locomotive just parked at the slope bottom. When they stepped down with the right foot onto the mine floor they rolled an ankle and fell against the coal rib. Employee didn't violate any rules or regulations but failed to assure solid footing.