A curfew like that doesn't make sense. I would consider this to be extreme government overreach. In a free society you are allowed to study as much as you want and you're allowed to teach as much as you want.
As the quote in the third paragraph says: 'It's the hagwon that's in violation, not you.'
Of course, the underlying issue is societal and economic.