I think the yelling at tourists is mainly going to be if you're doing something stupid (though some of those are non-obvious: e.g. taking pictures in clubs is mostly a no-no). I probably wouldn't mess with trying to get in to Berghain. Other places you'll have a decent shot. If you want to go like a pro, show up from 4-6 a.m. instead of midnight with the tourists. The pros come out late, and the lines are shorter and the dancefloors are less packed -- if you actually like to dance, later is better. I'll sometimes even go out on Sunday afternoon.
It's not about just line length, you would have to fit in and seem non-tourist to get into Berghain, and then you'd need to actually enjoy a dark, brutal, kink and techno club full of intentional degeneracy. I would absolutely go, for the music, but wouldn't be as much into the kink side, which I think is escalated somewhat from what Tresor was?
There's a good documentary on the history of Tresor: "Sub Berlin - The Story Of Tresor" which appears to even have a re-cut version on youtube: https://www.youtube.com/watch?v=iiuJhq-z2LE
I'm travelling there for the first time, as a woman alone I wouldn't like to have nasty looks tbh (or even be yelled at as other user suggested), not want to bother, know to behave and just want to get to know the city along with other places in Europe.