Tdameritrade account buy stocks...?

Can i use a credit card cash advance check say i write one to myself place it into my bank account then transfer the monies to my Tdameritrade account and buy stocks... Repay the loan back over time...Is this illegal in any way.
http://www.tdbank.com/tdhelps/default.as
3 answers 3