To be a guard in dreams suggests a sense of duty or obligation, either towards someone or to whatever the object is that we are charged with looking after.

This also suggests a particular code of conduct or behaviour.