There’s a lot of good advice in here, but one other to add on the “brain is a muscle” route. Try downloading and playing logic games like sudoku. Things that force you to think through and understand what’s going on.
As tou start working on honing your logic skills, try to apply it to real world situations. Don’t just ask AI, but start breaking it down like you would a puzzle.