This question is marked as duplicate. But after see the answer it is also duplicate
Get product collection by category id on phtml file magento2
Original answer
Create product collection in PHTML with filter based on Category ID
what should do regarding this kind of behavior from user?
In my opinion you must mention the Original author..