Unveiling the role of magnetic fields in a filament accreting onto a young protocluster | Synapse