for the purposes of criminal investigations or criminal proceedings or for the purposes of the prevention or detection of crime
at ddibenion ymchwiliad troseddol neu achos troseddol neu at ddibenion atal troseddu neu ganfod trosedd