Suppose there are two maps $f : A \to B$ and $g : A\to C$ such that $C$ and $B$ can be different sets, but $f(x)=g(x)$ for every $x$ in $A$. Thus, the image of $f$ and $g$ are both contained in the intersection of $B$ and $C$.
Then, can it be said that $f=g$? This seems like a trivial question, but really annoys and confuses me...
Here, the function $F$ is defined as $F : M \to N$ but also regarded as $F : M \to F(M)$ to be a homeomorphism. So it still leaves confusion...

They are not equal. For two maps to be equal you also require them to have the same domain and codomain.
What you can do for example, is "corestrict" f and g to $B \cap C$. So it is true, that $f|^{B\cap C} = g|^{B \cap C}$.