means that
a useful force or tool can become destructive if it is allowed to escape control.
The saying “Fire is a good servant but a bad master” can be used when something that is useful when it is controlled and used wisely can be dangerous when it takes over.