I wish I knew of a good source. I'm sure other's know of one. I learned them by listening to my mother scold me when I screwed up.
Of course "in" could be used, but it has
so many uses, that to start a sentence with it would not get your attention. "In baseball, there are nine innings." You could say, "With baseball, there are nine innings," and nobody would think you had said anything different. (Don't make me put an "ly" on that.)

"Within each of the two major leagues, there are certain unique rules of the game, making the play slightly different than in the opposite league."
(That's a mess of a sentence, but perhaps you can see the special use of "within," where "in" would not quite do the same job.)