You can remember the meaning of 律师 with this easy mnemonic:
Study law (律) hard and listen to the teachers (师) and then become a lawyer was the plan!
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.