If you cross the foul line, it is considered a foul, and any pins knocked down on that throw will not count toward your score.