'Need not' (no to) normally has the meaning that something in not necessary, but it is allowed. However throwing the ball is against the rules of golf, so a better sentence might be 'one must not throw the ball in golf' or more, naturally, 'throwing the ball is not allowed in golf'