I disagree with Collins. Take a jumper, make sure there are less than 2 seconds on the clock. Make sure that there is 0 time left when the ball is by the rim. It's win or OT.
The refs won't call a foul to send someone to the line to win the game.
Make sure that you don' tturn the ball over by your own basket. Make sure you set up the shot you want and that there is no time left. It doesn't hurt anything to use the TO, you're not going to run on the break after that made basket, so make sure everyone is calmed down and you don't make an error.