As long as your girlfriend is the last person you’ve slept with you haven’t cheated.
Person 1: Mate didn’t you sleep with Sarah?Person 2: Yeah but I slept with my girlfriend today so according to Dang’s law I haven’t cheated.