A Devon and Cornwall detective helped secure sexual offences law changes after a suspect could not be charged over an alleged act in a child's presence.