I answered that question a few months ago. Check the answer hanging from the first answer. Long story short, it was impossible to enforce the limitation.
https://reddit.com/r/AskHistorians/comments/epysm0/how_was_established_the_spanishportuguese_earth/