Can't Change Heading with Autopilot On

I’m not a real world pilot so I’m curious about your reply. Why would having ALT hold while you are steering cause a stall or a spin? The ailerons and elevators are separate. Maybe an extreme bank might be problematic but IRL isn’t the goal to try and keep the same altitude when turning? If so, why not have AP help with that?