On the chaos and stability problem in the trapping of anomalous cosmic ray heavy ions by the Earth's magnetosphere