“International occupation law requires the occupying power to administer the occupied territory in the interests of the local population and to ensure the continued functioning of educational and medical institutions (Fourth Geneva Convention, Articles 50 and 56). International humanitarian law also provides that the occupying power may employ protected persons in work necessary to provide the population with food, shelter, clothing, transport, and medical services (Fourth Geneva Convention, Article 51). Therefore, national legislation on collaboration creates a risk of criminalizing conduct that the occupying power is obligated to provide under international humanitarian law.”
From a report by the UN OHCHR dated June 27, 2023, on the detention of civilians in the context of the ongoing conflict.