when necessary

Library

The surprising reasons animals play dead - Tierney Thys
So this technique should only be used when necessary.
general
при необходимости
Используется, чтобы сказать, что что-то следует делать только при необходимости.