If the town's streets are crooked, then it's wrong to walk in straight lines.
This is a literal translation of an Arabic expression. It subtly encourages people to follow suit when immoral behavior has become the norm in their communities. Is there an English expression that resembles or matches this one? If not, does my translation convey the meaning intended ?