It just comes down to respecting the league & players, and doing what is in the rules/spirit of that league.
Some leagues have written rules against coaching; others are more casual and allow degrees of coaching.
I'm OK if after the game is over someone talks strategy, "heh, next week you should try this...". But actively coaching during an active ball would annoy a lot of players. The exception to that might be a kid starting out.