Let the joint distribution of a random vector be $$f(x,y)=\begin{cases}1,\enspace 0<x<1, x<y<x+1&\\0, \enspace {\rm otherwise}\end{cases}$$
The marginal pdf of $X$ is $Uni(0,1)$, but what is the distribution of $Y$? By definition it should be $$f_Y(y)=\int_0^1 f(x,y){\rm d}x=1$$
but this is not correct. Integration is done over the bounds of $X$, and when $x\in(0,1)$ then $f(x,y)=1$. Is this not correct?