Spoiler Thread: Avengers Infinity War

I normally just read these threads but I have a question. It was my understanding that Hulk got stronger the more mad he got. I would think that getting his arse handed to him by Thanos would make him pretty mad and I would think that he would continue to get mad until he was actually stronger than Thanos. How is it that Thanos is able to stop Hulk from getting angrier and thereby stronger than himself?