in this context, it would usually be translated as "when/while + gerund." Будьте осторожны при работе с электричеством! - be careful when working with electricity.