Relation between halo spin and cosmic-web filaments at z similar or equal to 3