You can put conditions on selling real-estate it’s done all the time. their called covenants...
And they’re shot down in the courts all the time. Depends on the state and locality whether or not those will actually stand.
And you can’t write them AFTER you offer the property on the open market. Ie, you can’t add them in after the fact when you find out someone ‘unsuitable’ is considering purchasing the property.
And what will you do when you find they HAVE been violating the covenants. How will you prove that? Cameras? Hear say? Can you afford a legal case that might take YEARS to resolve?
Good luck with that.