Expressions used in Everyday Spoken English in Social and Professional contexts
To go off the rails means to begin to behave in a destructive or damaging way that is unacceptable to others, such as breaking the law or engaging in anti-social behaviour. This is a casual idiom used in informal situations.