Do you modify the view or viewport in anyway?
If the view is mapped 1:1 to the window, you best calculate the bounds of the view and then you can simply call .contains or .intersects instead of big boolean statements.
auto rect = sf::FloatRect{ view.getCenter() - (view.getSize() / 2.f), view.getSize() };
if (rect.contains(point))
{
// ...
}