In Matthew 5:25 what does it mean to be in the way with our adversary? Jesus Christ said the following words recorded in Matthew 5:25 "Agree with thine adversary quickly, whiles thou art in the way with him; lest at any time the adversary deliver thee to the judge, and the judge deliver thee to the officer, and thou be cast into prison."

https://www.lds.org/scriptures/nt/matt/5.25?lang=eng#24

Similarly in 3 Nephi 25-26 of the book of Mormon when Jesus Christ visited the people in America after his resurrection he spoke the words "Agree with thine adversary quickly while thou art in the way with him, lest at any time he shall get thee, and thou shalt be cast into prison. Verily, verily, I say unto thee, thou shalt by no means come out thence until thou hast paid the uttermost senine. And while ye are in prison can ye pay even one senine? Verily, verily, I say unto you, Nay."

https://www.lds.org/scriptures/bofm/3-ne/12.25?lang=eng#24

What does it mean to be in the way with your adversary?

How would these verses apply to real life?
The meaning of Matthew 5:25 may be clearer if you consult a more recent translation:


  Come to terms quickly while you are on the way to court with him, or your accuser may hand you over to the judge, and the judge to the guard, and you will be thrown into prison. [NRSV]