Confused about where controls fall into the audit process

I'm using Becker, and they have their IM A CPA mnemonic for the audit process. I'm very confused about where internal controls fits into this mnemonic. So first you obtain an understanding of the knowledge of the internal controls (that's the I), and then later you're supposed to evaluate the design and implementation of the internal controls (which Gearty said was in the M). Then based on those two, you're supposed to assess control risk? And then in the C, you determine the operating effectiveness of the controls by testing them? Is that correct? Why wouldn't you test the operating effectiveness of controls before setting the control risk? And how is evaluating the design and implementation of internal controls different from testing the controls? Thanks!