Constraints already do most of the job for you by automatically changing constraints according to where you place your object. If necessary, you’re able to override this. In other words, you actually don’t need to do anything with it unless you know why you want to change it.