"Illegal acts" are those which are prohibited by official rules or law. They are the product of rulers, legislative bodies and judges. They are usually written down in law codes. In a well-ordered society, these are published and made known generally. In a cloudy-and often crime-ridden-society one has to consult an attorney or be specially trained to know them all: such a society will tell one that "ignorance is no excuse for breaking the law."
Any member of society, however, has a responsibility, whether young or old, for knowing what that society considers to be an "illegal act." People can be asked, libraries exist where they can be looked up.
An "illegal act" is not disobedience to some casual order like "go to bed." It is an action, which if not done, can result in punishment by the courts and state - being pilloried by the state propaganda machine, fines and even imprisonment.
When one does something illegal, small or large, one is laid open to an attack by the state. It does not matter whether one is caught or not, when one does an illegal act, one has weakened one's defenses.
Almost any worthwhile thing one is trying to accomplish often can be done in perfectly legal ways.
The "illegal" route is a dangerous and time-wasting shortcut. Imagined "advantages" in committing illegal acts usually turn out not to be worth it.
The state and government tends to be a rather unthinking machine. It exists and works on laws and code of laws. It is geared to strike down through its channels at illegality. As such it can be an implacable enemy, adamant on the subject of "illegal acts." The rightness and wrongness of things do not count in the face of laws and codes of laws. Only the laws count.
When you realize or discover that those about you are committing "illegal acts," you should do what you can to discourage it. You yourself, not even a party to it, can yet suffer because of it. The firm's accountant falsifies the books: in any resulting commotion, the firm could fail and you could lose your job. Such instances can grossly affect one's own survival.
As a member of any group subject to laws, encourage the clear-cut publication of those laws so they can be known. Support any legal political effort to reduce, clarify and codify the laws that apply to that group. Adhere to the principle that all men are equal under law, a principle which, in its own time and place - the tyrannical days of aristocracy - was one of the greatest social advances in human history and should not be lost sight of.
See that children and people become informed of what is "legal" and what is "illegal" and make it known, if by as little as a frown, that you do not approve of "illegal acts."
Those who commit them, even when they "get away with them," are yet weakened before the might of the state.
The way to happiness
does not include the fear of being found out.