Definitions of offend
to breach a rule, regulation, or condition etc
In these cases, the Company may dismiss the offending employee.
to cause someone to feel upset or annoyed etc
The Government is not likely to offend unionist sensibilities.
to commit a crime or commit an illegal act
Those who do offend will face the consequences of their actions - and prison will still be a major part of that.