Avoiding the dangers of generative AI