Bosses have been warned they face the threat of prosecution under Labour's ban on conversion therapy - alongside parents.