These two phrases mean the same thing and emphasize that you should think first before you speak to God about a matter. (See: [[rc://en/ta/man/translate/figs-parallelism]])
Here a person is represented by his "heart" to emphasize his emotions and desires. Alternate translation: "do not" (See: [[rc://en/ta/man/translate/figs-synecdoche]])