There is a related question, but I still not sure that I understood.
Let's say there is a set
$\{ x\in \mathbb{R}^n : f(x) \le 0 \}$
Is it right to say that the set is convex iff function $f(x)$ is convex?
If yes, is convex function domain same as convex set domain?
Edit:
I saw the answers for my original question, and all gave the same example that convex set not always lead to convex function.
So my new question,
Is it always right to say that if the function is convex then the set too?
$-x^{2}$ is not convex (it is concave), and $-x^{2} \leq 0$ for all $x$.
Note also that for any monotone function $f: \mathbb R \to \mathbb R$ your set is convex.