Is taking a Chinese course that’s too hard good for your learning?

Chinese has a reputation for being hard to learn and it can be even harder if you take a course that is above your level. But why would you do that? What are the potential pros and cons of deliberately seeking out a learning environment where just keeping your head above water will be hard?