I've always assumed the expression comes from the dice game called 'Craps', which involves placing on a line the amount of money you want to bet. Idioms are fixed expressions. If you do not use the usual words, it will sound odd to the listener.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.