inhabit/refrain/restrain/
First, I think you mean "inhibit" rather than "inhabit"
Assuming this is correct, "inhibit" means to prohibit from doing something. It also means to restrain from free expression or action due to psychological or social constraints. A person can seem inhibited.
"Restrain" in some uses can mean the same thing as inhibit, but is somewhat different. It means to prevent from doing something, or limit, restrict or keep under control.
"Inhibit" is usually used in a psychological sense. "Restrain" is sometimes used in the same way but can also be used in a physical sense. "His friends restrained him from hitting the man."
"Refrain" means to keep oneself from doing something. You may not be restrained from smoking - no one is stopping you - but you might still voluntarily refrain from it.