A parent may not be criminally prosecuted for surrendering a child of the parent if the child


(1) is an infant who is less than 21 days of age;


(2) is surrendered in the manner described in AS 47.10.013
(c); and


(3) is not the subject of a court order affecting custody of the child.