Same way it is illegal in some counties to have cars on blocks in your front yard.
You in no way, shape or form made a case for the one with the citing of the other. Let me repeat it then.
How is selling your body a violation of your neighbor's rights? Assuming you are not your neighbor's slave and therefore his property.
The only way it would not be a violation would be if you lived in a state whose majority wished to legalize prostitution. Otherwise, you are subjecting your neighbor to the ills of prostitution in the community.