The writer tells the result of getting understanding and discretion.
"you will live in the way ... follow the example"