Many times an "attack of Satan" is nothing more that the consequences of our own poor choices or inappropriate behavior.
How many times have seen good Christian people make a decision and then pray to God to "make it work out" or "bless this ." without ever investigating and check out the possible consequence of their desired...
Dave Ramsey has a saying ... "Let your bank account make the decision". this is very similar to what Jesus said, "...if a man builds a house.... count the cost."