within the law
idiomDefinition of within the law
1
: agreeing with the law : legal
He says that everything he did was within the law.
2
: in a legal way
With the organization under so much scrutiny, it is even more important that they work/operate within the law.