To evade the fallout on salary and job opportunities, what are things one can do to prepare? Are there any skills that make one less susceptible to AI replacement? Any fields within engineering (or engineering adjacent) one should get into?
Focus on the parts of the job that aren't easy to automate. For example, AI may become good at writing code, but not at figuring out what code to write. Get good at Architecture and Requirements, and understanding the business you support.
I do see your point though to some degree. E.g. It's getting easier to make landing pages with no coding experience. At the same time though, landing pages get more complex requirements to stand out from the crowd. So there will always be room for customized software imo.
That being said, you could always make the AI that replaces your job now and let it run for 5 to 10 years or until they catch you