Are there good ways to avoid intestinal atresia?

None known. A birth defect of unknown causes can not be prevented.
No. This is a congenital condition (babies are born with it) and is usually diagnosed in infancy.