Many people are afraid of how AI could impact their jobs. But there are ways to avoid getting edged out of a career because of artificial intelligence.