You can remember the meaning of 行为 with this easy mnemonic:
Why is he capable (行) of doing (为) such awful crimes? The government must take action and arrest him.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.