You need to get comfortable with breaking the rules.
Obviously you should make good choices & consider what the consequences of your actions will be.
But there are a surprising number of forms of disobedience for which there won't necessarily be any major direct consequences. We live in authoritarian bureaucracies: not everything you disobey will be a law. A lot of it is rules & procedures that nobody really knows why they are there in the first place & there is no enforcement mechanism).