There’s nothing wrong with giving advice now and again. As long as it’s politely given and constructive, such a thing could be exactly what a struggling friend needs to hear to get out of whatever rut they are in.
However, too many people seem to think, for whatever reason, that their opinions on a given subject are the only correct ones, and that everyone else requires educating. Constantly.
Honestly, those people are kind of the worst.