The Bible is a very practical book. It is filled with many commands. Some of them are positive commands (i.e. what to do). Some of them are negative commands (i.e. what not to do).
As a result, many people think that God is oppressive and looking to make our lives miserable with our rules. However, such could not be further from the truth. In every command given in the Bible, God has our good in mind. When He tells us to do something, it is because it is good for us. When He tells us not to do something, it is because it would be bad for us.
In other words, when God says, “Don’t,” what He really means is “Don’t hurt yourself.”