There are two reasons to do the right thing:

1) Because you might get caught if you do the wrong thing.
2) Because it's the right thing to do.

If you're in a position to do so, it's better to teach 2), but
it's easier to teach 1).