Any person who unlawfully exposes or abandons any child under 7 years in such a manner that grievous harm is likely to be caused to the child, is liable on conviction on indictment to imprisonment for 5 years.