what is your understanding of what to do when ethics and legalities collide?

Please read the following prompt and respond with an initial post of at least 250 words.
In chapter 5, the authors discuss how “ethical does not always equal legal.” In other words, while ethical standards most often overlap with legal requirements, they still remain distinct entities and can be in conflict. From the reading related to this in the chapter, what is your understanding of what to do when ethics and legalities collide? Please cite the textbook or other sources you consult to answer this question. Also, please provide an example to illustrate your point.