The seasoned captain tells the apprentice to confine his steps to the deck.
confine
verb · /kənˈfaɪn/
To restrict or keep within specified boundaries, limits, or scope.
Do not confuse "confine" (to restrict or set strict boundaries) with lookalikes like "confide" (to share personal secrets in trust) or "confirm" (to verify factual accuracy).
Latin com- ("completely, together") + finis ("boundary, limit, border") → to enclose completely within definite boundaries.