Is it illegal to be anorexic or bulimic
No, it isn't. They are diseases.
It is not illegal to be anorexic or bulimic. However, the are dangerous because they can be detrimental to your health