The first baseman or other fielders standing in foul territory is a complicated subject, and the rules differ among the various codes, and umpires differ in how to actually handle it. Childress' Baseball Rule Differences devotes more than three pages to this issue.
For FED, if a fielder's feet are both in foul territory when a pitch is delivered, it is by rule an illegal pitch: a ball with no runners or a balk with runners. Most umpires will however purposely not notice this unless it is brought to their attention. The rule: 1-1-4
"ART. 4 At the time of the pitch, all fielders shall be on fair ground except the catcher who shall be in the catcher's box. A fielder is in fair ground when at least one foot is touching fair ground.
PENALTY: Illegal pitch. (2-18-1)"
For NCAA, the rule is somewhat similar: 5-4c
" SECTION 4. At the start of or during a game, all players of the defensive team except the catcher must be in fair territory when the ball is put in play.
Being in fair territory means that a defensive player must have at least one foot placed in fair territory.
.......
c. Other than the pitcher and catcher, all other fielders may position themselves anywhere in fair territory.
PENALTY for c.—The play, if it benefits the defense, shall be nullified. If it is an appeal play, the appeal is lost."
I believe, but I may be wrong, that the phrase "when the ball is put in play" refers to when a batter puts the ball into play rather than when the umpire calls "play". Regardless, it is clear that unless the ball is put into play, there is no penalty.
For OBR, "4.03 When the ball is put in play at the start of, or during a game, all fielders other than
the catcher shall be on fair territory.
......
(c) Except the pitcher and the catcher, any fielder may station himself anywhere in fair territory."
Furthermore, the PBUC manual says a fielder needs both feet in fair ground.
For OBR no penalty is listed, so this is a "don't do that." In fact the PBUC manual says that the umpire is to ignore it unless somebody complains. In pro ball, nobody is going to complain.
For the most part, NCAA and OBR rules are intended to make sure that a team puts 9 players on defense, and that there aren't any defensive shenanigans like F7 hiding in the dugout, and then rushing out to take a pick off throw at third.
The FED rule seems to be aimed at making sure F3 doesn't have both feet in foul ground. Childress points out that the FED rule omits the requirement that a team field 9 defensive players. That was presumably a mistake.
So in FED, it is an illegal pitch, but most umpires ignore the infraction.
NCAA nullifies the play but only if the defense benefits.
OBR has no penalty, other than ejection for repeated infractions.