As long as you keep the heat low, take your time and stir every few minutes, you shouldn't have any issues! The most common cause of burning is (not surprisingly) too high heat. If your onions are drying out a lot as they cook, add more liquid to the pan to keep them moist.