Bitcoin is still very illegal in many countries and to many governments, but in many of these countries, what is surprising is that you will still find investors in bitcoins who are going against the government and secretly buying and investing in bitcoins. An example of some of these people are members in this forum, so I am want to ask a personal question, do you think of yourself as a bad citizen for disobeying the government? Do you agree that you are a violator for breaking the law?
I am not residing in your country and my country see Bitcoin as a mode of payment so basically my country sees Bitcoin as legal and does not see Bitcoin users as violators. So the answer to your question is subjective.
But in general, if the government announces that Bitcoin engagement is illegal, then any person who is engaging with Bitcoin whether discretely or openly is labeled as violator. Depending on the country's law, they will be punished if caught accordingly.
Now see things from a religious side as well, by disobeying the government and investing in bitcoins, are you committing the sin of direct disobedience?
In my country, there is a clear statement of separation of state and religion. As long as the person is not committing any act that go against the Holy Scriptures, then that person is not sinning. As far as I know buying Bitcoin and trading with it is not written as a sin in any Holy Scripture... and if you find a direct statement that tells that buying Bitcoin is a sin, then I would gladly stop engaging with Bitcoin activities.