"scolded me" means someone spoke angry/harsh words to someone and usually includes giving orders not to do it again.
"scolded me when I made..." means that the scolding happened at the same time/at the moment of me making the mess.
"scolded me after making..." means that the scolding occurred/happened at some time following the making of the mess.
"scolded me for making..." means that she scolded me because I made a mess, but it does not tell use when the scolding happened. Albert's explanation for using the preposition "for" is correct.
All of the phrases above are correct.