Even without carpet, you'd tack it so it stays pretty close to the side of the threshold. 'Nobody' uses the outside inch or so of the threshold, so it's not going to be a tripping hazard. If you are going across the threshold that's different, but in that case, it's better to go over the top of the door frame.