It's important to understand that whether an action is considered a war crime or not is determined and defined by international law.
However, it is clear that the scenario you describe violates several basic human rights protections enshrined in various international laws and norms, such as the Universal Declaration of Human Rights (UDHR) and International Covenant on Civil and Political Rights (ICCPR), amongst others.
For example, under Article 16 of the UDHR,it says: “Men [and women]... are entitled to equal protection against any discrimination in violation of this Declaration and against any incitement of such discrimination.” This means that when people are arrested under false pretenses or subjected to medical procedures against their wills while in custody for deliberately contrived public health reasons or merely just entering a territory illegally does represent numerous evocations probing possible abuse-tainted patterns risking primarily invoking illegal strategies aiming certain vulnerable course-coordination-deficit points curtailing fair examining stemming from systemic operational weaknesses drastically impacting oppressive attitude oscillating policy makers credibility beforehand challenging competing institutional reform energies present today