There is a difference between freedom of the flesh and freedom of the spirit. Freedom of the spirit is freedom from sin. Freedom of the flesh is freedom from divine government. When a minister speaks of freedom he must explain whether he is speaking of freedom of the flesh or freedom of the spirit. This is called dualism.
Sin is to rebel against divine government, law.
When we are born again we are born back into the kingdom through the indwelling Christ. Now I am free in the spirit from sin. I receive a new spirit to agree in obedience to that Word. Compliance with the moral message of the Word - the moral commandments of the Word is called obedience. When we are free in the spirit, we are inhibited in the flesh.