What is the meaning of [Don’t cut the bough you are standing on]

If you depend upon anything, make use you can do without it before you get rid
of it. Don’t endanger your own position by hasty or thoughtless action.

> Mr Smithers cut off the bought he was standing on by giving his landlord a
week’s notice before he found somewhere else to live.