A person commits an offence if—
A person does not commit an offence under this section if—
For the purposes of subsection (2), a person acts for the protection of a child if he acts for the purpose of—
and not for the purpose of obtaining sexual gratification or for the purpose of causing or encouraging the activity constituting the offence within subsection (1)(b) or the child's participation in it.
A person guilty of an offence under this section is liable to the penalty to which the person would be liable on conviction of the offence within subsection (1)(b).