Comment by XajniN
Article 51 of the Geneva Conventions [1]. It is slightly ambiguous on purpose, more details can be found in the commentary [2].
[1] https://ihl-databases.icrc.org/en/ihl-treaties/api-1977/arti...
[2] https://ihl-databases.icrc.org/en/ihl-treaties/api-1977/arti...