In France, we have strong sick leave laws, with the prohibition of work :
If you are in a work stoppage (due to work-related or non-work-related illness or accident at work), you must refrain from any activity not authorised by the doctor.
The prohibition extends to any activity, whether paid or not, even if it is limited and takes place during authorized hours of exit.
French Republic - Public Service
During my annual check up, I got heated criticism by my manager about the fact that, according to them, sick leave doesn't prevent work (I only had 2 weeks sick leave at this point), and that I needed to work, and support the company, during my sick leave if I am feeling well enough to do so (my job can be remote), and not just disappear during leave to reappear after being cleared... My advisor for my apprenticeship program who was there, didn't disagree in the slightest.
I haven't said anything to not ignite the situation, but in the event that I get other push backs for respecting the regulations, how can I advance it to them that I will not work if I am under sick leave?
To be precise, those sick leaves aren't ones I take myself, they are prescribed by a doctor.