In your example, of course it has to be don't confine yourself.
As to the larger question you pose, I think that a verb of reflexive sense always requires a reflexive pronoun, e.g. yourself rather than you. There may be an exception, but I can't produce it.
Student or Learner