You shouldn't smoke in front of children.
Jim is craving cigarettes inside of a drug store where there are children on one side of the building.
Jim wants to smoke outside of the drug store.
Jim walks outside and smokes away from the children.
Jim walks outside and starts smoking in front of the children.
The children do not notice Jim or his smoking, and they are safe from the fumes.
The children inhale second-hand smoke from Jim, which is hazardous to their health.