To best understand a preposition, always think of it in terms of its physical meaning. Almost all of them have a physical meaning. For example, in
"The cat jumped OFF the table"
"off" expresses the fact that the cat jumped so that it would no longer be ON the table.
Here's the secret to mastering phrases like the ones you mentioned. Every time you learn a new phrase, match it up with a mental picture that is just as physically vivid as a cat jumping off of a table. For example, suppose you see the sentence "the accused man hired an attorney to get off". Here, "off" is used in the sense of "away", as in "the cat ran OFF into the forest". So, the accused man wants to escape something, like the cat running into the forest. The thing he wants to escape is jail. Create a mental image of the accused man running (getting) OFF from jail and associate that image in your mind with "get off". He wants to get off, running away from jail.
Do something similar with all such phrases. Gradually they will seem logical to you and you won't need to memorize anything.