There should still be a stud you attach it to, even if the stud is at the edge. It will still be 1-1/2 wide. If the side 'wall' is drywalled, you measure 2" in from it. That will be the edge of the stud. Put the nail between that and the outer edge.
© 2017 Renovate Your World LLC