And whosoever shall compel thee to go a mile, go with him twain (Mathew 5:41)
Jews were once ruled by Roman Emperors. Rome's Kingdom was very strong. Many times the Jews rebelled against the Romans and ruined themselves. Unconditionally, Jews had to obey Romans.
God knew that the Romans put their hardships on Jewish community, but did not interfere with the Roman kingdom. Had the Jews diligently obeyed God’s commandments and were in the God's Kingdom, all slavery and hardships would have eluded them.
Jesus spoke in parable that if somebody compels you to go one mile, go two miles
If one should not murder as per the commandment of the old testament, Jesus said one should not get even angry at all, which indicated travelling two miles.
If one should not commit adultery as per the commandment of the old testament, Jesus said don’t even sin through the desire of your eyes, which indicated travelling two miles
Eye for an eye and tooth for a tooth, this is an old testament commandment.
Jesus said: If any one harms you, don't harm him back. But repay evil with good deeds which is going two miles.