The best way to deal with credit problems is to develop good habits before problems start. As a first step, you need to organize your finances and keep a budget. Even if credit difficulties are already a reality, a budget helps you get out of debt and maintain good credit afterwards.
A budget helps you organize your spending. It tells you what money comes in, what money goes out and where the money goes. Creating a budget can also show you where some changes might be needed. It will help identify expenses that aren't as important to you so you can free up money for those that are.